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 OutputStreamoutTheOutputStreamthat has been wrapped into a FinishableWrapperOutputStream.
-
Constructor Summary
Constructors Constructor Description FinishableWrapperOutputStream(OutputStream out)Creates a new output stream which support finishing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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.tukaani.xz.FinishableOutputStream
finish
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Field Detail
-
out
protected OutputStream out
TheOutputStreamthat has been wrapped into a FinishableWrapperOutputStream.
-
-
Constructor Detail
-
FinishableWrapperOutputStream
public FinishableWrapperOutputStream(OutputStream out)
Creates a new output stream which support finishing. Thefinish()method will do nothing.
-
-
Method Detail
-
write
public void write(int b) throws IOExceptionCallsout.write(b).- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] buf) throws IOExceptionCallsout.write(buf).- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] buf, int off, int len) throws IOExceptionCallsout.write(buf, off, len).- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOExceptionCallsout.flush().- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOExceptionCallsout.close().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-