public class InputStreamStreamInput extends StreamInput
| Constructor and Description |
|---|
InputStreamStreamInput(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, 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, setVersion, wrap, wrap, wrappublic InputStreamStreamInput(InputStream is)
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 void reset()
throws IOException
StreamInputreset in class StreamInputIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void close()
throws IOException
StreamInputclose in interface Closeableclose in interface AutoCloseableclose in class StreamInputIOExceptionpublic int available()
throws IOException
available in class StreamInputIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic 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 InputStreamIOExceptionCopyright © 2009–2017. All rights reserved.