|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.elasticsearch.common.io.stream.StreamInput
public abstract class StreamInput
Constructor Summary | |
---|---|
StreamInput()
|
Method Summary | |
---|---|
abstract void |
close()
Closes the stream to further operations. |
boolean |
readBoolean()
Reads a boolean. |
abstract byte |
readByte()
Reads and returns a single byte. |
abstract 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. |
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
Object |
readGenericValue()
|
int |
readInt()
Reads four bytes and returns an int. |
long |
readLong()
Reads eight bytes and returns a long. |
Map<String,Object> |
readMap()
|
String |
readOptionalString()
|
String |
readOptionalUTF()
Deprecated. use readOptionalString() |
short |
readShort()
|
String |
readString()
|
String[] |
readStringArray()
|
Text |
readText()
|
String |
readUTF()
Deprecated. use readString() |
int |
readVInt()
Reads an int stored in variable-length format. |
long |
readVLong()
Reads a long stored in variable-length format. |
abstract void |
reset()
Resets the stream. |
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, read, read, read, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamInput()
Method Detail |
---|
public abstract byte readByte() throws IOException
IOException
public abstract void readBytes(byte[] b, int offset, int len) throws IOException
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read
IOException
public BytesReference readBytesReference() throws IOException
IOException
public BytesReference readBytesReference(int length) throws IOException
IOException
public void readFully(byte[] b) throws IOException
IOException
public short readShort() throws IOException
IOException
public int readInt() throws IOException
IOException
public int readVInt() throws IOException
IOException
public long readLong() throws IOException
IOException
public long readVLong() throws IOException
IOException
@Nullable @Deprecated public String readOptionalUTF() throws IOException
readOptionalString()
IOException
public Text readText() throws IOException
IOException
@Nullable public String readOptionalString() throws IOException
IOException
public String readString() throws IOException
IOException
@Deprecated public String readUTF() throws IOException
readString()
IOException
public final float readFloat() throws IOException
IOException
public final double readDouble() throws IOException
IOException
public final boolean readBoolean() throws IOException
IOException
public abstract void reset() throws IOException
reset
in class InputStream
IOException
public abstract void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
public String[] readStringArray() throws IOException
IOException
@Nullable public Map<String,Object> readMap() throws IOException
IOException
@Nullable public Object readGenericValue() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |