Package org.tukaani.xz
Class FinishableOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.tukaani.xz.FinishableOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Direct Known Subclasses:
FinishableWrapperOutputStream,LZMAOutputStream,XZOutputStream
public abstract class FinishableOutputStream extends java.io.OutputStreamOutput stream that supports finishing without closing the underlying stream.
-
-
Constructor Summary
Constructors Constructor Description FinishableOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Finish the stream without closing the underlying stream.
-
-
-
Method Detail
-
finish
public void finish() throws java.io.IOExceptionFinish the stream without closing the underlying stream. No more data may be written to the stream after finishing.The
finishmethod ofFinishableOutputStreamdoes nothing. Subclasses should override it if they need finishing support, which is the case, for example, with compressors.- Throws:
java.io.IOException
-
-