public final class ByteArrayIStream
extends java.io.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) |
public ByteArrayIStream(byte[] buf)
public ByteArrayIStream(byte[] buf,
int length)
public final int read()
read 在类中 java.io.InputStreampublic final int read(byte[] buf,
int offset,
int length)
read 在类中 java.io.InputStreampublic final int available()
available 在类中 java.io.InputStreampublic final long skip(long n)
skip 在类中 java.io.InputStreampublic final void reset()
reset 在类中 java.io.InputStreampublic final void close()
reset().close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.InputStreamCopyright © 2018. All Rights Reserved.