public abstract class FilterStreamInput extends StreamInput
StreamInput
and delegates to it. To be used to add functionality to an existing stream by subclassing.Modifier | Constructor and Description |
---|---|
protected |
FilterStreamInput(StreamInput delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream to further operations.
|
Version |
getVersion() |
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()
Resets the stream.
|
void |
setVersion(Version version) |
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, wrap, wrap, wrap
available, mark, markSupported, read, read, skip
protected FilterStreamInput(StreamInput delegate)
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 void reset() throws IOException
StreamInput
reset
in class StreamInput
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
StreamInput
close
in interface Closeable
close
in interface AutoCloseable
close
in class StreamInput
IOException
public Version getVersion()
getVersion
in class StreamInput
public void setVersion(Version version)
setVersion
in class StreamInput
Copyright © 2009–2016. All rights reserved.