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 int
Indicates if theOutputStream
should close the underlyingWritableByteChannel
.static int
Indicates if theOutputStream
should 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 theOutputStream
should flush after every operation. Note that flush will always happen when the adapter is closed. -
CLOSE
public static int CLOSEIndicates if theOutputStream
should close the underlyingWritableByteChannel
.
-
-
Constructor Details
-
OutputStreamAdapter
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-