Package org.conscrypt
Class ConscryptFileDescriptorSocket.SSLOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.conscrypt.ConscryptFileDescriptorSocket.SSLOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- ConscryptFileDescriptorSocket
private class ConscryptFileDescriptorSocket.SSLOutputStream extends java.io.OutputStreamThis inner class provides output data stream functionality for the OpenSSL native implementation. It is used to write data according to the encryption parameters given in SSL context.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ObjectwriteLockOpenSSL only lets one thread write at a time, so this is used to make sure we serialize callers of SSL_write.
-
Constructor Summary
Constructors Constructor Description SSLOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidawaitPendingOps()voidwrite(byte[] buf, int offset, int byteCount)Method acts as described in spec for superclass.voidwrite(int oneByte)Method acts as described in spec for superclass.
-
-
-
Method Detail
-
write
public void write(int oneByte) throws java.io.IOExceptionMethod acts as described in spec for superclass.- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
OutputStream.write(int)
-
write
public void write(byte[] buf, int offset, int byteCount) throws java.io.IOExceptionMethod acts as described in spec for superclass.- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
OutputStream.write(byte[],int,int)
-
awaitPendingOps
void awaitPendingOps()
-
-