public class BaseNCodecInputStream
extends java.io.FilterInputStream
Modifier | Constructor and Description |
---|---|
protected |
BaseNCodecInputStream(java.io.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(java.io.InputStream in, BaseNCodec baseNCodec, boolean doEncode)
public int read() throws java.io.IOException
byte
from this input stream.read
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error occurs.public int read(byte[] b, int offset, int len) throws java.io.IOException
len
bytes into the specified b
array starting at offset
from this InputStream.read
in class java.io.FilterInputStream
b
- destination byte arrayoffset
- where to start writing the byteslen
- maximum number of bytes to readjava.io.IOException
- if an I/O error occurs.java.lang.NullPointerException
- if the byte array parameter is nulljava.lang.IndexOutOfBoundsException
- if offset, len or buffer size are invalidpublic boolean markSupported()
markSupported
in class java.io.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.