public class ByteBufferStreamInput extends StreamInput
| コンストラクタと説明 |
|---|
ByteBufferStreamInput(ByteBuffer buffer) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
available() |
void |
close()
Closes the stream to further operations.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
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.
|
void |
reset()
Resets the stream.
|
long |
skip(long n) |
getVersion, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalStreamable, readOptionalString, readOptionalText, readOptionalVInt, readShort, readString, readStringArray, readTaskStatus, readText, readThrowable, readVInt, readVIntArray, readVLong, readVLongArray, setVersion, wrap, wrap, wrapreadpublic ByteBufferStreamInput(ByteBuffer buffer)
public int read()
throws IOException
read クラス内 InputStreamIOExceptionpublic byte readByte()
throws IOException
StreamInputreadByte クラス内 StreamInputIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read クラス内 InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip クラス内 InputStreamIOExceptionpublic 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 void reset()
throws IOException
StreamInputreset クラス内 StreamInputIOExceptionpublic int available()
throws IOException
available クラス内 InputStreamIOExceptionpublic void mark(int readlimit)
mark クラス内 InputStreampublic boolean markSupported()
markSupported クラス内 InputStreampublic void close()
throws IOException
StreamInputclose インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 StreamInputIOExceptionCopyright © 2009–2016. All rights reserved.