org.apache.commons.codec.binary
public class BaseNCodecInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
private BaseNCodec |
baseNCodec |
private boolean |
doEncode |
private byte[] |
singleByte |
in
Modifier | Constructor and Description |
---|---|
protected |
BaseNCodecInputStream(InputStream in,
BaseNCodec baseNCodec,
boolean doEncode) |
Modifier and Type | Method and Description |
---|---|
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. |
private final boolean doEncode
private final BaseNCodec baseNCodec
private final byte[] singleByte
protected BaseNCodecInputStream(InputStream in, BaseNCodec baseNCodec, boolean doEncode)
public int read() throws IOException
byte
from this input stream.read
in class FilterInputStream
IOException
- 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 FilterInputStream
b
- destination byte arrayoffset
- where to start writing the byteslen
- maximum number of bytes to readIOException
- if an I/O error occurs.NullPointerException
- if the byte array parameter is nullIndexOutOfBoundsException
- if offset, len or buffer size are invalidpublic boolean markSupported()
markSupported
in class FilterInputStream
commons-codec version 1.6-SNAPSHOT - Copyright © 2002-2014 - Apache Software Foundation