|
||||||||||
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.transport.netty.ChannelBufferStreamInput
public class ChannelBufferStreamInput
A Netty ChannelBuffer
based StreamInput
.
Constructor Summary | |
---|---|
ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer)
|
|
ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer,
int length)
|
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 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(int length)
Reads a bytes reference from this stream, might hold an actual reference to the underlying bytes of the stream. |
void |
reset()
Resets the stream. |
long |
skip(long n)
|
int |
skipBytes(int n)
|
Methods inherited from class org.elasticsearch.common.io.stream.StreamInput |
---|
readBoolean, readBytesReference, readDouble, readFloat, readFully, readGenericValue, readInt, readLong, readMap, readOptionalString, readOptionalUTF, readShort, readString, readStringArray, readText, readUTF, readVInt, readVLong |
Methods inherited from class java.io.InputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer)
public ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer, int length)
Method Detail |
---|
public BytesReference readBytesReference(int length) throws IOException
StreamInput
readBytesReference
in class StreamInput
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 int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
StreamInput
reset
in class StreamInput
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int skipBytes(int n) throws IOException
IOException
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 void close() throws IOException
StreamInput
close
in interface Closeable
close
in class StreamInput
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |