public class BaseNCodecInputStream extends FilterInputStream
in| 限定符 | 构造器和说明 |
|---|---|
protected |
BaseNCodecInputStream(InputStream in,
BaseNCodec baseNCodec,
boolean doEncode) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
mark(int readLimit)
Marks the current position in this input stream.
|
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. |
void |
reset()
Repositions this stream to the position at the time the mark method was
last called on this input stream.
|
long |
skip(long n) |
close, readprotected BaseNCodecInputStream(InputStream in, BaseNCodec baseNCodec, boolean doEncode)
public int available()
throws IOException
available 在类中 FilterInputStream0 if the InputStream has reached
EOF, 1 otherwiseIOExceptionpublic void mark(int readLimit)
The mark(int) method of
BaseNCodecInputStream
does nothing.
mark 在类中 FilterInputStreamreadLimit - the maximum limit of bytes that can be read before the mark
position becomes invalid.public boolean markSupported()
markSupported 在类中 FilterInputStreamfalsepublic int read()
throws IOException
byte from this input stream.read 在类中 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 在类中 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 void reset()
throws IOException
The reset() method of
BaseNCodecInputStream
does nothing except throw an IOException.
reset 在类中 FilterInputStreamIOException - if this method is invokedpublic long skip(long n)
throws IOException
skip 在类中 FilterInputStreamIllegalArgumentException - if the provided skip length is negativeIOExceptionCopyright © 2016. All rights reserved.