FreeHEP API
Version v1.2

org.freehep.util.io
Class RunLengthInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.freehep.util.io.RunLengthInputStream
All Implemented Interfaces:
RunLength

public class RunLengthInputStream
extends InputStream
implements RunLength

The RunLengthStream decodes Run Length encoding. The exact definition of Run Length encoding can be found in the PostScript Language Reference (3rd ed.) chapter 3.13.3. IMPORTANT: inherits from InputStream rather than FilterInputStream so that the correct read(byte[], int, int) method is used.

Version:
$Id: RunLengthInputStream.java,v 1.2 2001/06/15 14:11:18 duns Exp $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from interface org.freehep.util.io.RunLength
EOD, LENGTH
 
Constructor Summary
RunLengthInputStream(InputStream input)
           
 
Method Summary
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunLengthInputStream

public RunLengthInputStream(InputStream input)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
IOException

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.