org.tukaani.xz
Class FinishableOutputStream
java.lang.Object
java.io.OutputStream
org.tukaani.xz.FinishableOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Direct Known Subclasses:
- FinishableWrapperOutputStream, XZOutputStream
public abstract class FinishableOutputStream
- extends OutputStream
Output stream that supports finishing without closing
the underlying stream.
Method Summary |
void |
finish()
Finish the stream without closing the underlying stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FinishableOutputStream
public FinishableOutputStream()
finish
public void finish()
throws IOException
- Finish the stream without closing the underlying stream.
No more data may be written to the stream after finishing.
The finish
method of FinishableOutputStream
does nothing. Subclasses should override it if they need finishing
support, which is the case, for example, with compressors.
- Throws:
IOException