public class ByteBufferStreamInput extends StreamInput
Constructor and Description |
---|
ByteBufferStreamInput(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
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, wrap
read
public ByteBufferStreamInput(ByteBuffer buffer)
public int read() throws IOException
read
in class InputStream
IOException
public byte readByte() throws IOException
StreamInput
readByte
in class StreamInput
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public void readBytes(byte[] b, int offset, int len) throws IOException
StreamInput
readBytes
in class StreamInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readIOException
public void reset() throws IOException
StreamInput
reset
in class StreamInput
IOException
public int available() throws IOException
available
in class StreamInput
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void close() throws IOException
StreamInput
close
in interface Closeable
close
in interface AutoCloseable
close
in class StreamInput
IOException
Copyright © 2009–2017. All rights reserved.