java.io.Closeable
, java.lang.AutoCloseable
public class ASCII85InputStream
extends java.io.FilterInputStream
Constructor | Description |
---|---|
ASCII85InputStream(java.io.InputStream is) |
Constructor.
|
Modifier and Type | Method | 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.
|
public ASCII85InputStream(java.io.InputStream is)
is
- The input stream to actually read from.public final 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 final 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.lang.AutoCloseable
close
in interface java.io.Closeable
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.