public class InputStreamStreamInput extends StreamInput
Constructor and Description |
---|
InputStreamStreamInput(java.io.InputStream is) |
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.
|
void |
reset()
Resets the stream.
|
long |
skip(long n) |
getVersion, readAggregatorFactory, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalBytesReference, readOptionalFloat, readOptionalQuery, readOptionalStreamable, readOptionalString, readOptionalStringArray, readOptionalText, readOptionalVInt, readOptionalWriteable, readPhraseSuggestionSmoothingModel, readPipelineAggregatorFactory, readQuery, readRescorer, readScoreFunction, readShape, readShort, readSortBuilder, readString, readStringArray, readSuggestion, readTaskStatus, readText, readThrowable, readVInt, readVIntArray, readVLong, readVLongArray, readZLong, setVersion, wrap, wrap, wrap
public byte readByte() throws java.io.IOException
StreamInput
readByte
in class StreamInput
java.io.IOException
public void readBytes(byte[] b, int offset, int len) throws java.io.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 readjava.io.IOException
public void reset() throws java.io.IOException
StreamInput
reset
in class StreamInput
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
public void close() throws java.io.IOException
StreamInput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class StreamInput
java.io.IOException
public int available() throws java.io.IOException
available
in class StreamInput
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException