public class InputStreamStreamInput extends StreamInput
| 构造器和说明 |
|---|
InputStreamStreamInput(InputStream is)
Creates a new InputStreamStreamInput with unlimited size
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close()
Closes the stream to further operations.
|
int |
read() |
byte |
readByte()
Reads and returns a single byte.
|
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset.
|
readBoolean, readDouble, readFloat, readGenericValue, readInt, readLong, readOptionalBoolean, readOptionalDouble, readOptionalFloat, readOptionalInt, readOptionalLong, readOptionalVInt, readOptionalVLong, readShort, readVInt, readVLong, readZLong, wrap, wrapmark, markSupported, read, read, reset, skippublic InputStreamStreamInput(InputStream is)
is - the input stream to wrappublic void close()
throws IOException
StreamInputclose 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 StreamInputIOExceptionpublic int available()
throws IOException
available 在类中 StreamInputIOExceptionpublic byte readByte()
throws IOException
StreamInputreadByte 在类中 StreamInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
StreamInputreadBytes 在类中 StreamInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionCopyright © 2021. All rights reserved.