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

Class RunLengthOutputStream

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


    public class RunLengthOutputStream
    extends java.io.FilterOutputStream
    implements RunLength, FinishableOutputStream
    The RunLengthOutputStream encodes data as Run Length encoding. The exact definition of Run Length encoding can be found in the PostScript Language Reference (3rd ed.) chapter 3.13.3.
    • Constructor Summary

      Constructors 
      Constructor and Description
      RunLengthOutputStream(java.io.OutputStream out)
      Create a Run Length output stream
    • Method Summary

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

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

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

      • RunLengthOutputStream

        public RunLengthOutputStream(java.io.OutputStream out)
        Create a Run Length output stream
        Parameters:
        out - stream to write
    • Method Detail

      • write

        public void write(int a)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • 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
        Throws:
        java.io.IOException - if write fails
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class java.io.FilterOutputStream
        Throws:
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.