|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.elasticsearch.common.io.stream.StreamInput
org.elasticsearch.common.io.stream.LZFStreamInput
public class LZFStreamInput
Field Summary | |
---|---|
protected boolean |
cfgFullReads
Flag that indicates whether we force full reads (reading of as many bytes as requested), or 'optimal' reads (up to as many as available, but at least one). |
protected StreamInput |
inputStream
stream to be decompressed |
Fields inherited from class org.elasticsearch.common.io.stream.StreamInput |
---|
chararr |
Constructor Summary | |
---|---|
LZFStreamInput(StreamInput in,
boolean cached)
|
Method Summary | |
---|---|
void |
close()
Closes the stream to further operations. |
int |
read()
|
int |
read(byte[] buffer,
int offset,
int length)
|
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. |
void |
reset()
Resets the stream. |
void |
reset(StreamInput in)
|
void |
resetToBufferStart()
Expert!, resets to buffer start, without the need to decompress it again. |
Methods inherited from class org.elasticsearch.common.io.stream.StreamInput |
---|
readBoolean, readDouble, readFloat, readFully, readInt, readLong, readShort, readUTF, readVInt, readVLong |
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, read, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StreamInput inputStream
protected boolean cfgFullReads
Constructor Detail |
---|
public LZFStreamInput(StreamInput in, boolean cached)
Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
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 read
java.io.IOException
public void reset() throws java.io.IOException
StreamInput
reset
in class StreamInput
java.io.IOException
public void reset(StreamInput in) throws java.io.IOException
java.io.IOException
public void resetToBufferStart()
public void close() throws java.io.IOException
StreamInput
close
in interface java.io.Closeable
close
in class StreamInput
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |