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 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
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.