Class 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.OutputStream
    Output stream that supports finishing without closing the underlying stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()
      Finish the stream without closing the underlying stream.
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream, write, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FinishableOutputStream

        public FinishableOutputStream()
    • Method Detail

      • finish

        public void finish()
                    throws java.io.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:
        java.io.IOException