Package org.tukaani.xz
Class FinishableWrapperOutputStream
java.lang.Object
java.io.OutputStream
org.tukaani.xz.FinishableOutputStream
org.tukaani.xz.FinishableWrapperOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class FinishableWrapperOutputStream extends FinishableOutputStream
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
Fields Modifier and Type Field Description protected OutputStream
out
TheOutputStream
that has been wrapped into a FinishableWrapperOutputStream. -
Constructor Summary
Constructors Constructor Description FinishableWrapperOutputStream(OutputStream out)
Creates a new output stream which support finishing. -
Method Summary
Modifier and Type Method Description void
close()
Callsout.close()
.void
flush()
Callsout.flush()
.void
write(byte[] buf)
Callsout.write(buf)
.void
write(byte[] buf, int off, int len)
Callsout.write(buf, off, len)
.void
write(int b)
Callsout.write(b)
.Methods inherited from class org.tukaani.xz.FinishableOutputStream
finish
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
TheOutputStream
that 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:
write
in classOutputStream
- Throws:
IOException
-
write
Callsout.write(buf)
.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
Callsout.write(buf, off, len)
.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
Callsout.flush()
.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
Callsout.close()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-