|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
org.xerial.snappy.SnappyInputStream
public class SnappyInputStream
| Field Summary | |
|---|---|
protected InputStream |
in
|
| Constructor Summary | |
|---|---|
SnappyInputStream(InputStream input)
|
|
| Method Summary | |
|---|---|
void |
close()
|
protected boolean |
hasNextChunk()
|
int |
rawRead(Object array,
int byteOffset,
int byteLength)
Read uncompressed data into the specified array |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
int |
read(double[] d)
Read double array from the stream |
int |
read(double[] d,
int off,
int len)
Read double array from the stream |
int |
read(float[] d)
Read float array from the stream |
int |
read(float[] d,
int off,
int len)
Read float array from the stream |
int |
read(int[] d)
Read int array from the stream |
int |
read(int[] d,
int off,
int len)
Read int array from the stream |
int |
read(long[] d)
Read long array from the stream |
int |
read(long[] d,
int off,
int len)
Read long array from the stream |
int |
read(short[] d)
Read short array from the stream |
int |
read(short[] d,
int off,
int len)
Read short array from the stream |
protected void |
readFully(byte[] fragment,
int fragmentLength)
|
protected void |
readHeader()
|
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final InputStream in
| Constructor Detail |
|---|
public SnappyInputStream(InputStream input)
throws IOException
IOException| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
protected void readHeader()
throws IOException
IOException
protected void readFully(byte[] fragment,
int fragmentLength)
throws IOException
IOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException
public int rawRead(Object array,
int byteOffset,
int byteLength)
throws IOException
array - byteOffset - byteLength -
IOException
public int read(long[] d,
int off,
int len)
throws IOException
d - inputoff - offsetlen - the number of long elements to read
IOException
public int read(long[] d)
throws IOException
d -
IOException
public int read(double[] d,
int off,
int len)
throws IOException
d - inputoff - offsetlen - the number of double elements to read
IOException
public int read(double[] d)
throws IOException
d -
IOException
public int read(int[] d)
throws IOException
d -
IOException
public int read(int[] d,
int off,
int len)
throws IOException
d - inputoff - offsetlen - the number of int elements to read
IOException
public int read(float[] d,
int off,
int len)
throws IOException
d - inputoff - offsetlen - the number of float elements to read
IOException
public int read(float[] d)
throws IOException
d -
IOException
public int read(short[] d,
int off,
int len)
throws IOException
d - inputoff - offsetlen - the number of short elements to read
IOException
public int read(short[] d)
throws IOException
d -
IOException
protected boolean hasNextChunk()
throws IOException
IOException
public int read()
throws IOException
read in class InputStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||