final class ASCII85InputStream
extends java.io.FilterInputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
ascii |
private byte[] |
b |
private boolean |
eof |
private int |
index |
private int |
n |
private static char |
NEWLINE |
private static char |
OFFSET |
private static char |
PADDING_U |
private static char |
RETURN |
private static char |
SPACE |
private static char |
TERMINATOR |
private static char |
Z |
Constructor and Description |
---|
ASCII85InputStream(java.io.InputStream is)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Unsupported.
|
void |
close()
This will close the underlying stream and release any resources.
|
void |
mark(int readlimit)
Unsupported.
|
boolean |
markSupported()
non supported interface methods.
|
int |
read()
This will read the next byte from the stream.
|
int |
read(byte[] data,
int offset,
int len)
This will read a chunk of data.
|
void |
reset()
Unsupported.
|
long |
skip(long nValue)
Unsupported.
|
private int index
private int n
private boolean eof
private byte[] ascii
private byte[] b
private static final char TERMINATOR
private static final char OFFSET
private static final char NEWLINE
private static final char RETURN
private static final char SPACE
private static final char PADDING_U
private static final char Z
ASCII85InputStream(java.io.InputStream is)
is
- The input stream to actually read from.public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
- If there is an error reading from the wrapped stream.public int read(byte[] data, int offset, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
data
- The buffer to write data to.offset
- The offset into the data stream.len
- The number of byte to attempt to read.java.io.IOException
- If there is an error reading data from the underlying stream.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterInputStream
java.io.IOException
- If there is an error closing the underlying stream.public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public long skip(long nValue)
skip
in class java.io.FilterInputStream
nValue
- ignored.public int available()
available
in class java.io.FilterInputStream
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
readlimit
- ignored.public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
- telling that this is an unsupported action.