|
|||||||||
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
Field Summary | |
---|---|
protected char[] |
chararr
|
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. |
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
int |
readInt()
Reads four bytes and returns an int. |
long |
readLong()
Reads eight bytes and returns a long. |
short |
readShort()
|
java.lang.String |
readUTF()
|
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 |
Field Detail |
---|
protected char[] chararr
Constructor Detail |
---|
public StreamInput()
Method Detail |
---|
public abstract byte readByte() throws java.io.IOException
java.io.IOException
public abstract void readBytes(byte[] b, int offset, int len) throws java.io.IOException
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
java.io.IOException
public short readShort() throws java.io.IOException
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
public int readVInt() throws java.io.IOException
java.io.IOException
public long readLong() throws java.io.IOException
java.io.IOException
public long readVLong() throws java.io.IOException
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
java.io.IOException
public final float readFloat() throws java.io.IOException
java.io.IOException
public final double readDouble() throws java.io.IOException
java.io.IOException
public final boolean readBoolean() throws java.io.IOException
java.io.IOException
public abstract void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |