public class ASCII85InputStream extends java.io.InputStream implements ASCII85Constants
The class is derived from InputStream instead of FilteredInputStream because we can use the read(byte[], int, int) method from InputStream which simply delegates to read(). This makes the implementation easier.
The filter is described in chapter 3.13.3 of the PostScript Language Reference (third edition).
| Modifier and Type | Field and Description |
|---|---|
private int[] |
b |
private int |
bIndex |
private int |
bSize |
private boolean |
eodReached |
private java.io.InputStream |
in |
END, EOD, EOL, POW85, START, ZERO, ZERO_ARRAY| Constructor and Description |
|---|
ASCII85InputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
private int |
filteredRead() |
private void |
handleEOD() |
int |
read() |
private void |
readNextTuple() |
private java.io.InputStream in
private boolean eodReached
private int[] b
private int bSize
private int bIndex
public ASCII85InputStream(java.io.InputStream in)
FilterInputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionFilterInputStreamprivate int filteredRead()
throws java.io.IOException
java.io.IOExceptionprivate void handleEOD()
throws java.io.IOException
java.io.IOExceptionprivate void readNextTuple()
throws java.io.IOException
java.io.IOException