Package org.conscrypt
Class ConscryptEngineSocket.SSLOutputStream
java.lang.Object
java.io.OutputStream
org.conscrypt.ConscryptEngineSocket.SSLOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
ConscryptEngineSocket
Wrap bytes written to the underlying socket.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OutputStream
private final ByteBuffer
private final int
private final Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
private void
private void
init()
void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) private void
writeInternal
(ByteBuffer buffer) private void
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
writeLock
-
target
-
targetArrayOffset
private final int targetArrayOffset -
socketOutputStream
-
-
Constructor Details
-
SSLOutputStream
SSLOutputStream()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
writeInternal
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
flushInternal
- Throws:
IOException
-
init
- Throws:
IOException
-
writeToSocket
- Throws:
IOException
-