|
||||||||||
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 org.elasticsearch.common.io.stream.AdapterStreamInput
public abstract class AdapterStreamInput
Field Summary | |
---|---|
protected StreamInput |
in
|
Constructor Summary | |
---|---|
protected |
AdapterStreamInput()
|
|
AdapterStreamInput(StreamInput in)
|
Method Summary | |
---|---|
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. |
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. |
void |
readFully(byte[] b)
|
int |
readInt()
Reads four bytes and returns an int. |
long |
readLong()
Reads eight bytes and returns a long. |
short |
readShort()
|
String |
readString()
|
Text |
readText()
|
String |
readUTF()
|
int |
readVInt()
Reads an int stored in variable-length format. |
long |
readVLong()
Reads a long stored in variable-length format. |
void |
reset()
Resets the stream. |
void |
reset(StreamInput in)
|
long |
skip(long n)
|
String |
toString()
|
Methods inherited from class org.elasticsearch.common.io.stream.StreamInput |
---|
readBoolean, readDouble, readFloat, readGenericValue, readMap, readOptionalString, readOptionalUTF, readStringArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected StreamInput in
Constructor Detail |
---|
protected AdapterStreamInput()
public AdapterStreamInput(StreamInput in)
Method Detail |
---|
public void reset(StreamInput in)
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 read
IOException
public BytesReference readBytesReference() throws IOException
StreamInput
readBytesReference
in class StreamInput
IOException
public BytesReference readBytesReference(int length) throws IOException
StreamInput
readBytesReference
in class StreamInput
IOException
public void reset() throws IOException
StreamInput
reset
in class StreamInput
IOException
public void close() throws IOException
StreamInput
close
in interface Closeable
close
in class StreamInput
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void readFully(byte[] b) throws IOException
readFully
in class StreamInput
IOException
public short readShort() throws IOException
readShort
in class StreamInput
IOException
public int readInt() throws IOException
StreamInput
readInt
in class StreamInput
IOException
public int readVInt() throws IOException
StreamInput
readVInt
in class StreamInput
IOException
public long readLong() throws IOException
StreamInput
readLong
in class StreamInput
IOException
public long readVLong() throws IOException
StreamInput
readVLong
in class StreamInput
IOException
public String readUTF() throws IOException
readUTF
in class StreamInput
IOException
public String readString() throws IOException
readString
in class StreamInput
IOException
public Text readText() throws IOException
readText
in class StreamInput
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |