Package org.conscrypt
Class SSLSocketOutputStream
java.lang.Object
java.io.OutputStream
org.conscrypt.SSLSocketOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class SSLSocketOutputStream extends OutputStream
This is a application data output stream used in SSLSocket
implementation.
The written bytes are encrypted, packed into the records,
and then sent to the peer host.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSSLSocketOutputStream(SSLSocketImpl owner) -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, write
-
Constructor Details
-
SSLSocketOutputStream
-
-
Method Details
-
write
Description copied from class:OutputStreamWrites a single byte to this stream. Only the least significant byte of the integeroneByteis written to the stream.- Specified by:
writein classOutputStream- Parameters:
b- the byte to be written.- Throws:
IOException- if an error occurs while writing to this stream.
-
write
Description copied from class:OutputStreamWritescountbytes from the byte arraybufferstarting at positionoffsetto this stream.- Overrides:
writein classOutputStream- Parameters:
b- the buffer to be written.off- the start position inbufferfrom where to get bytes.len- the number of bytes frombufferto write to this stream.- Throws:
IOException- if an error occurs while writing to this stream.
-