Package dev.getelements.elements.rt.util
Class OutputStreamAdapter
java.lang.Object
java.io.OutputStream
dev.getelements.elements.rt.util.OutputStreamAdapter
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intIndicates if theOutputStreamshould close the underlyingWritableByteChannel.static intIndicates if theOutputStreamshould flush after every operation. -
Constructor Summary
ConstructorsConstructorDescriptionOutputStreamAdapter(WritableByteChannel wbc, ByteBuffer byteBuffer, int options) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
FLUSH
public static int FLUSHIndicates if theOutputStreamshould flush after every operation. Note that flush will always happen when the adapter is closed. -
CLOSE
public static int CLOSEIndicates if theOutputStreamshould close the underlyingWritableByteChannel.
-
-
Constructor Details
-
OutputStreamAdapter
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-