public final class ByteArrayIStream extends InputStream
All argument validation is disabled in release mode.
| 构造器和说明 |
|---|
ByteArrayIStream(byte[] buf) |
ByteArrayIStream(byte[] buf,
int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close()
Equivalent to
reset(). |
int |
read() |
int |
read(byte[] buf,
int offset,
int length) |
void |
reset()
Differs from the contruct for InputStream.reset() in that this method
always resets the stream to the same it was immediately after creation.
|
long |
skip(long n) |
mark, markSupported, readpublic ByteArrayIStream(byte[] buf)
public ByteArrayIStream(byte[] buf,
int length)
public final int read()
read 在类中 InputStreampublic final int read(byte[] buf,
int offset,
int length)
read 在类中 InputStreampublic final int available()
available 在类中 InputStreampublic final long skip(long n)
skip 在类中 InputStreampublic final void reset()
reset 在类中 InputStreampublic final void close()
reset().close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamCopyright © 2018. All rights reserved.