BufferedChecksumStreamInput, NamedWriteableAwareStreamInputpublic abstract class FilterStreamInput extends StreamInput
StreamInput and delegates to it. To be used to add functionality to an existing stream by subclassing.| Modifier and Type | Field | Description |
|---|---|---|
protected StreamInput |
delegate |
| Modifier | Constructor | Description |
|---|---|---|
protected |
FilterStreamInput(StreamInput delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
Closes the stream to further operations.
|
protected void |
ensureCanReadBytes(int length) |
This method throws an
EOFException if the given number of bytes can not be read from the this stream. |
Version |
getVersion() |
The version of the node on the other side of this stream.
|
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.
|
void |
reset() |
|
void |
setVersion(Version version) |
Set the version of the node on the other side of this stream.
|
mark, markSupported, read, read, readAllBytes, readNBytes, skip, transferToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadArray, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readEnum, readException, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readMap, readMapOfLists, readNamedWriteable, readNamedWriteable, readNamedWriteableList, readOptionalArray, readOptionalBoolean, readOptionalBytesReference, readOptionalDouble, readOptionalFloat, readOptionalLong, readOptionalNamedWriteable, readOptionalStreamable, readOptionalString, readOptionalStringArray, readOptionalText, readOptionalTimeZone, readOptionalVInt, readOptionalWriteable, readShort, readStreamableList, readString, readStringArray, readText, readTimeZone, readVInt, readVIntArray, readVLong, readVLongArray, readZLong, wrap, wrapprotected final StreamInput delegate
protected FilterStreamInput(StreamInput delegate)
public byte readByte()
throws java.io.IOException
StreamInputreadByte in class StreamInputjava.io.IOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws java.io.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 readjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamInputclose in class StreamInputjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class StreamInputjava.io.IOExceptionpublic Version getVersion()
StreamInputgetVersion in class StreamInputpublic void setVersion(Version version)
StreamInputsetVersion in class StreamInputprotected void ensureCanReadBytes(int length)
throws java.io.EOFException
StreamInputEOFException if the given number of bytes can not be read from the this stream. This method might
be a no-op depending on the underlying implementation if the information of the remaining bytes is not present.ensureCanReadBytes in class StreamInputjava.io.EOFException