org.opensha.commons.mapping.gmt.raster
Class ASCII85InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.opensha.commons.mapping.gmt.raster.ASCII85InputStream
All Implemented Interfaces:
Closeable

public class ASCII85InputStream
extends InputStream

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 5941 2009-10-12 20:38:15Z pmpowers $
Author:
Mark Donszelmann

Field Summary
static long a85p1
           
static long a85p2
           
static long a85p3
           
static long a85p4
           
static int MAX_CHARS_PER_LINE
           
 
Constructor Summary
ASCII85InputStream(InputStream input)
           
 
Method Summary
 int getLineNo()
           
 boolean isEndReached()
           
 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
 

Field Detail

MAX_CHARS_PER_LINE

public static final int MAX_CHARS_PER_LINE
See Also:
Constant Field Values

a85p1

public static long a85p1

a85p2

public static long a85p2

a85p3

public static long a85p3

a85p4

public static long a85p4
Constructor Detail

ASCII85InputStream

public ASCII85InputStream(InputStream input)
Method Detail

read

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

isEndReached

public boolean isEndReached()

getLineNo

public int getLineNo()