public abstract class AdapterStreamInput extends StreamInput
| Modifier and Type | Field and Description |
|---|---|
protected StreamInput |
in |
| Modifier | Constructor and Description |
|---|---|
protected |
AdapterStreamInput() |
|
AdapterStreamInput(StreamInput in) |
| 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 |
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.
|
BytesReference |
readBytesReference()
Reads a bytes reference from this stream, might hold an actual reference to the underlying
bytes of the stream.
|
BytesReference |
readBytesReference(int length)
Reads a bytes reference from this stream, might hold an actual reference to the underlying
bytes of the stream.
|
void |
readFully(byte[] b) |
int |
readInt()
Reads four bytes and returns an int.
|
long |
readLong()
Reads eight bytes and returns a long.
|
String |
readSharedString() |
Text |
readSharedText() |
short |
readShort() |
String |
readString() |
Text |
readText() |
int |
readVInt()
Reads an int stored in variable-length format.
|
long |
readVLong()
Reads a long stored in variable-length format.
|
void |
reset()
Resets the stream.
|
void |
reset(StreamInput in) |
StreamInput |
setVersion(Version version) |
long |
skip(long n) |
String |
toString() |
getVersion, readBoolean, readByteArray, readBytesRef, readBytesRef, readDouble, readDoubleArray, readFloat, readFloatArray, readGenericValue, readIntArray, readLongArray, readMap, readOptionalBoolean, readOptionalSharedString, readOptionalStreamable, readOptionalString, readOptionalText, readStringArray, readTextArrayprotected StreamInput in
protected AdapterStreamInput()
public AdapterStreamInput(StreamInput in)
public StreamInput setVersion(Version version)
setVersion in class StreamInputpublic void reset(StreamInput in)
public byte readByte()
throws IOException
StreamInputreadByte in class StreamInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
StreamInputreadBytes in class StreamInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionpublic BytesReference readBytesReference() throws IOException
StreamInputreadBytesReference in class StreamInputIOExceptionpublic BytesReference readBytesReference(int length) throws IOException
StreamInputreadBytesReference in class StreamInputIOExceptionpublic void reset()
throws IOException
StreamInputreset in class StreamInputIOExceptionpublic void close()
throws IOException
StreamInputclose in interface Closeableclose in interface AutoCloseableclose in class StreamInputIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void readFully(byte[] b)
throws IOException
readFully in class StreamInputIOExceptionpublic short readShort()
throws IOException
readShort in class StreamInputIOExceptionpublic int readInt()
throws IOException
StreamInputreadInt in class StreamInputIOExceptionpublic int readVInt()
throws IOException
StreamInputStreamInput.readInt()readVInt in class StreamInputIOExceptionpublic long readLong()
throws IOException
StreamInputreadLong in class StreamInputIOExceptionpublic long readVLong()
throws IOException
StreamInputreadVLong in class StreamInputIOExceptionpublic String readString() throws IOException
readString in class StreamInputIOExceptionpublic String readSharedString() throws IOException
readSharedString in class StreamInputIOExceptionpublic Text readText() throws IOException
readText in class StreamInputIOExceptionpublic Text readSharedText() throws IOException
readSharedText in class StreamInputIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreamCopyright © 2009–2016. All rights reserved.