Package org.tukaani.xz
Class FinishableWrapperOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.tukaani.xz.FinishableOutputStream
-
- org.tukaani.xz.FinishableWrapperOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.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 java.io.OutputStreamoutTheOutputStreamthat has been wrapped into a FinishableWrapperOutputStream.
-
Constructor Summary
Constructors Constructor Description FinishableWrapperOutputStream(java.io.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
-
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOExceptionCallsout.write(b).- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] buf) throws java.io.IOExceptionCallsout.write(buf).- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] buf, int off, int len) throws java.io.IOExceptionCallsout.write(buf, off, len).- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOExceptionCallsout.flush().- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionCallsout.close().- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
-