Class FinishableWrapperOutputStream
java.lang.Object
java.io.OutputStream
org.graalvm.shadowed.org.tukaani.xz.FinishableOutputStream
org.graalvm.shadowed.org.tukaani.xz.FinishableWrapperOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Wraps an output stream to a finishable output stream for use with
raw encoders. This is not needed for XZ compression and thus most
people will never need this.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OutputStreamTheOutputStreamthat has been wrapped into a FinishableWrapperOutputStream. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new output stream which support finishing. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Callsout.close().voidflush()Callsout.flush().voidwrite(byte[] buf) Callsout.write(buf).voidwrite(byte[] buf, int off, int len) Callsout.write(buf, off, len).voidwrite(int b) Callsout.write(b).Methods inherited from class org.graalvm.shadowed.org.tukaani.xz.FinishableOutputStream
finishMethods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
TheOutputStreamthat has been wrapped into a FinishableWrapperOutputStream.
-
-
Constructor Details
-
FinishableWrapperOutputStream
Creates a new output stream which support finishing. Thefinish()method will do nothing.
-
-
Method Details
-
write
Callsout.write(b).- Specified by:
writein classOutputStream- Throws:
IOException
-
write
Callsout.write(buf).- Overrides:
writein classOutputStream- Throws:
IOException
-
write
Callsout.write(buf, off, len).- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
Callsout.flush().- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
Callsout.close().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-