|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.apache.commons.codec.binary.BaseNCodecInputStream
public class BaseNCodecInputStream
Abstract superclass for Base-N input streams.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
protected |
BaseNCodecInputStream(InputStream in,
BaseNCodec baseNCodec,
boolean doEncode)
|
| Method Summary | |
|---|---|
int |
available()
|
void |
mark(int readLimit)
Marks the current position in this input stream. |
boolean |
markSupported()
|
int |
read()
Reads one byte from this input stream. |
int |
read(byte[] b,
int offset,
int len)
Attempts to read len bytes into the specified b array starting at offset
from this InputStream. |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
|
| Methods inherited from class java.io.FilterInputStream |
|---|
close, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseNCodecInputStream(InputStream in,
BaseNCodec baseNCodec,
boolean doEncode)
| Method Detail |
|---|
public int available()
throws IOException
available in class FilterInputStream0 if the InputStream has reached EOF,
1 otherwise
IOExceptionpublic void mark(int readLimit)
The mark(int) method of BaseNCodecInputStream does nothing.
mark in class FilterInputStreamreadLimit - the maximum limit of bytes that can be read before the mark position becomes invalid.public boolean markSupported()
markSupported in class FilterInputStreamfalse
public int read()
throws IOException
byte from this input stream.
read in class FilterInputStreamIOException - if an I/O error occurs.
public int read(byte[] b,
int offset,
int len)
throws IOException
len bytes into the specified b array starting at offset
from this InputStream.
read in class FilterInputStreamb - destination byte arrayoffset - where to start writing the byteslen - maximum number of bytes to read
IOException - if an I/O error occurs.
NullPointerException - if the byte array parameter is null
IndexOutOfBoundsException - if offset, len or buffer size are invalid
public void reset()
throws IOException
The reset() method of BaseNCodecInputStream does nothing except throw an IOException.
reset in class FilterInputStreamIOException - if this method is invoked
public long skip(long n)
throws IOException
skip in class FilterInputStreamIllegalArgumentException - if the provided skip length is negative
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||