public class SnappyInputStream
extends java.io.InputStream
SnappyOutputStream.| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
in |
| Constructor and Description |
|---|
SnappyInputStream(java.io.InputStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected boolean |
hasNextChunk() |
int |
rawRead(java.lang.Object array,
int byteOffset,
int byteLength) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
read(long[] d) |
int |
read(long[] d,
int off,
int len) |
protected void |
readFully(byte[] fragment,
int fragmentLength) |
protected void |
readHeader() |
public SnappyInputStream(java.io.InputStream input)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprotected void readHeader()
throws java.io.IOException
java.io.IOExceptionprotected void readFully(byte[] fragment,
int fragmentLength)
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int rawRead(java.lang.Object array,
int byteOffset,
int byteLength)
throws java.io.IOException
java.io.IOExceptionpublic int read(long[] d,
int off,
int len)
throws java.io.IOException
d - inputoff - offsetlen - the number of long elements to readjava.io.IOExceptionpublic int read(long[] d)
throws java.io.IOException
java.io.IOExceptionprotected boolean hasNextChunk()
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionCopyright © 2023. All Rights Reserved.