FreeHEP API
Version current

org.freehep.util.io
Class RunLengthOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.freehep.util.io.RunLengthOutputStream
All Implemented Interfaces:
FinishableOutputStream, RunLength

public class RunLengthOutputStream
extends 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.

Version:
$Id: RunLengthOutputStream.java,v 1.2 2002/02/27 22:05:06 duns Exp $
Author:
Mark Donszelmann
Source Code:
RunLengthOutputStream.java

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Fields inherited from interface org.freehep.util.io.RunLength
EOD, LENGTH
 
Constructor Summary
RunLengthOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
 void finish()
           
 void write(int a)
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunLengthOutputStream

public RunLengthOutputStream(OutputStream out)
Method Detail

write

public void write(int a)
           throws IOException
Throws:
IOException

finish

public void finish()
            throws IOException
Specified by:
finish in interface FinishableOutputStream
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.