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.OutputStream
out
TheOutputStream
that 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 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
-
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
Callsout.write(b)
.- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] buf) throws java.io.IOException
Callsout.write(buf)
.- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] buf, int off, int len) throws java.io.IOException
Callsout.write(buf, off, len)
.- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
Callsout.flush()
.- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
Callsout.close()
.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
-