FreeHEP API
Version v1.2

org.freehep.util.io
Class ASCII85InputStream

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

public class ASCII85InputStream
extends InputStream
implements ASCII85

The ASCII85InputStream decodes ASCII base-85 encoded data. The exact definition of ASCII base-85 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: ASCII85InputStream.java,v 1.3 2001/11/22 14:54:58 duns Exp $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from interface org.freehep.util.io.ASCII85
a85p1, a85p2, a85p3, a85p4, MAX_CHARS_PER_LINE
 
Constructor Summary
ASCII85InputStream(InputStream input)
           
 
Method Summary
 int getLineNo()
           
 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

ASCII85InputStream

public ASCII85InputStream(InputStream input)
Method Detail

read

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

getLineNo

public int getLineNo()

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.