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, readBoolean, readByteArray, readBytesRef, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalStreamable, readOptionalString, readOptionalText, readOptionalVInt, readShort, readString, readStringArray, readTaskStatus, readText, readThrowable, readVInt, readVIntArray, readVLong, readVLongArray, setVersion, wrap, wrap, wrapreadpublic ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer)
public ChannelBufferStreamInput(org.jboss.netty.buffer.ChannelBuffer buffer,
int length)
public BytesReference readBytesReference(int length) throws IOException
StreamInputreadBytesReference in class StreamInputIOExceptionpublic org.apache.lucene.util.BytesRef readBytesRef(int length)
throws IOException
readBytesRef in class StreamInputIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
StreamInputreset in class StreamInputIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int skipBytes(int n)
throws IOException
IOExceptionpublic byte readByte()
throws IOException
StreamInputreadByte in class StreamInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
StreamInputreadBytes in class StreamInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionpublic void close()
throws IOException
StreamInputclose in interface Closeableclose in interface AutoCloseableclose in class StreamInputIOExceptionCopyright © 2009–2016. All rights reserved.