Documentation of 'org.freehep.util.io.FlateOutputStream' Java class
FlateOutputStream
org.freehep.util.io

Class FlateOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, FinishableOutputStream


    public class FlateOutputStream
    extends java.util.zip.DeflaterOutputStream
    implements FinishableOutputStream
    The FlateOutputStream uses the Deflate mechanism to compress data. The exact definition of Deflate encoding can be found in the PostScript Language Reference (3rd ed.) chapter 3.13.3.
    • Constructor Summary

      Constructors 
      Constructor and Description
      FlateOutputStream(java.io.OutputStream out)
      Creates a (In-)Flate output stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void finish()
      Finishes the current outputstream (compresses, flushes, caluclates CRC) and writes whatever is left in the buffers, but does not close the stream.
      • Methods inherited from class java.util.zip.DeflaterOutputStream

        close, flush, write, write
      • Methods inherited from class java.io.FilterOutputStream

        write
      • Methods inherited from class java.lang.Object

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

      • FlateOutputStream

        public FlateOutputStream(java.io.OutputStream out)
        Creates a (In-)Flate output stream.
        Parameters:
        out - stream to write to
    • Method Detail

      • finish

        public void finish()
                    throws java.io.IOException
        Description copied from interface: FinishableOutputStream
        Finishes the current outputstream (compresses, flushes, caluclates CRC) and writes whatever is left in the buffers, but does not close the stream.
        Specified by:
        finish in interface FinishableOutputStream
        Overrides:
        finish in class java.util.zip.DeflaterOutputStream
        Throws:
        java.io.IOException - if write fails

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.