public class ChannelBufferStreamInput extends StreamInput
org.jboss.netty.buffer.ChannelBuffer based
StreamInput.
| Constructor and Description |
|---|
ChannelBufferStreamInput(ChannelBuffer buffer)
|
ChannelBufferStreamInput(ChannelBuffer buffer, int length)
|
| 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 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.
|
org |
readBytesRef(int length)
|
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)
|
getVersion, readBoolean, readByteArray, readBytesRef, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readInt, readIntArray, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalSharedString, readOptionalStreamable, readOptionalString, readOptionalText, readSharedString, readSharedText, readShort, readString, readStringArray, readText, readTextArray, readVInt, readVLong, setVersionreadpublic ChannelBufferStreamInput(ChannelBuffer buffer)
public ChannelBufferStreamInput(ChannelBuffer buffer,
int length)public BytesReferencereadBytesReference(int length) throws IOException
StreamInput
readBytesReference in class
StreamInput
IOException
public org.apache .lucene .util .BytesRef readBytesRef(int length) throws IOException
readBytesRef in class
StreamInput
IOException
public int available()
throws IOException
available in class
InputStream
IOException
public void mark(int readlimit)
public boolean markSupported()
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 into
offset - the offset in the array to start storing bytes
len - the number of bytes to read
IOException
public void close()
throws IOException
StreamInput
close in interface
Closeable
close in interface
AutoCloseable
close in class
StreamInput
IOException