public class ChannelBufferStreamInput extends StreamInput
ChannelBuffer
based StreamInput
.Constructor and Description |
---|
ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer) |
ChannelBufferStreamInput(org.jboss.netty.buffer.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.apache.lucene.util.BytesRef |
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, readArray, readBoolean, readByteArray, readBytesRef, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readNamedWriteable, readOptionalArray, readOptionalBoolean, readOptionalBytesReference, readOptionalDouble, readOptionalFloat, readOptionalNamedWriteable, readOptionalStreamable, readOptionalString, readOptionalStringArray, readOptionalText, readOptionalTimeZone, readOptionalVInt, readOptionalWriteable, readShort, readStreamableList, readString, readStringArray, readText, readThrowable, readTimeZone, readVInt, readVIntArray, readVLong, readVLongArray, readZLong, setVersion, wrap, wrap, wrap
public ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer)
public ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer, int length)
public BytesReference readBytesReference(int length) throws java.io.IOException
StreamInput
readBytesReference
in class StreamInput
java.io.IOException
public org.apache.lucene.util.BytesRef readBytesRef(int length) throws java.io.IOException
readBytesRef
in class StreamInput
java.io.IOException
public int available() throws java.io.IOException
available
in class StreamInput
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
StreamInput
reset
in class StreamInput
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
java.io.IOException
public byte readByte() throws java.io.IOException
StreamInput
readByte
in class StreamInput
java.io.IOException
public void readBytes(byte[] b, int offset, int len) throws java.io.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 readjava.io.IOException
public void close() throws java.io.IOException
StreamInput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class StreamInput
java.io.IOException