public class BaseNCodecInputStream extends FilterInputStream
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. |
protected BaseNCodecInputStream(InputStream in, BaseNCodec baseNCodec, boolean doEncode)
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 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 FilterInputStreamCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.