public class BaseNCodecInputStream
extends java.io.FilterInputStream
| 限定符 | 构造器和说明 |
|---|---|
protected |
BaseNCodecInputStream(java.io.InputStream in,
BaseNCodec baseNCodec,
boolean doEncode) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 java.io.FilterInputStreamjava.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 在类中 java.io.FilterInputStreamb - 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 在类中 java.io.FilterInputStream