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, readBytesRef, readBytesRef, readDouble, readDoubleArray, readFloat, readFloatArray, readGenericValue, readIntArray, readLongArray, readMap, readOptionalBoolean, readOptionalSharedString, readOptionalStreamable, readOptionalString, readOptionalText, readStringArray, readTextArray
protected StreamInput in
protected AdapterStreamInput()
public AdapterStreamInput(StreamInput in)
public StreamInput setVersion(Version version)
setVersion
in class StreamInput
public void reset(StreamInput in)
public byte readByte() throws IOException
StreamInput
readByte
in class StreamInput
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 BytesReference readBytesReference() throws IOException
StreamInput
readBytesReference
in class StreamInput
IOException
public BytesReference readBytesReference(int length) throws IOException
StreamInput
readBytesReference
in class StreamInput
IOException
public void reset() throws IOException
StreamInput
reset
in class StreamInput
IOException
public void close() throws IOException
StreamInput
close
in interface Closeable
close
in interface AutoCloseable
close
in class StreamInput
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void readFully(byte[] b) throws IOException
readFully
in class StreamInput
IOException
public short readShort() throws IOException
readShort
in class StreamInput
IOException
public int readInt() throws IOException
StreamInput
readInt
in class StreamInput
IOException
public int readVInt() throws IOException
StreamInput
StreamInput.readInt()
readVInt
in class StreamInput
IOException
public long readLong() throws IOException
StreamInput
readLong
in class StreamInput
IOException
public long readVLong() throws IOException
StreamInput
readVLong
in class StreamInput
IOException
public String readString() throws IOException
readString
in class StreamInput
IOException
public String readSharedString() throws IOException
readSharedString
in class StreamInput
IOException
public Text readText() throws IOException
readText
in class StreamInput
IOException
public Text readSharedText() throws IOException
readSharedText
in class StreamInput
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
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 int available() throws IOException
available
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
Copyright © 2009–2015. All rights reserved.