org.xerial.snappy
クラス SnappyInputStream

java.lang.Object
  上位を拡張 java.io.InputStream
      上位を拡張 org.xerial.snappy.SnappyInputStream
すべての実装されたインタフェース:
Closeable

public class SnappyInputStream
extends InputStream

作成者:
leo

フィールドの概要
protected  InputStream in
           
 
コンストラクタの概要
SnappyInputStream(InputStream input)
           
 
メソッドの概要
 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()
           
 
クラス java.io.InputStream から継承されたメソッド
available, mark, markSupported, read, reset, skip
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

in

protected final InputStream in
コンストラクタの詳細

SnappyInputStream

public SnappyInputStream(InputStream input)
                  throws IOException
例外:
IOException
メソッドの詳細

close

public void close()
           throws IOException
定義:
インタフェース Closeable 内の close
オーバーライド:
クラス InputStream 内の close
例外:
IOException

readHeader

protected void readHeader()
                   throws IOException
例外:
IOException

readFully

protected void readFully(byte[] fragment,
                         int fragmentLength)
                  throws IOException
例外:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
オーバーライド:
クラス InputStream 内の read
例外:
IOException

rawRead

public int rawRead(Object array,
                   int byteOffset,
                   int byteLength)
            throws IOException
Read uncompressed data into the specified array

パラメータ:
array -
byteOffset -
byteLength -
戻り値:
例外:
IOException

read

public int read(long[] d,
                int off,
                int len)
         throws IOException
Read long array from the stream

パラメータ:
d - input
off - offset
len - the number of long elements to read
戻り値:
the number of read bytes
例外:
IOException

read

public int read(long[] d)
         throws IOException
Read long array from the stream

パラメータ:
d -
戻り値:
the number of read bytes
例外:
IOException

read

public int read(double[] d,
                int off,
                int len)
         throws IOException
Read double array from the stream

パラメータ:
d - input
off - offset
len - the number of double elements to read
戻り値:
the number of read bytes
例外:
IOException

read

public int read(double[] d)
         throws IOException
Read double array from the stream

パラメータ:
d -
戻り値:
read bytes
例外:
IOException

read

public int read(int[] d)
         throws IOException
Read int array from the stream

パラメータ:
d -
戻り値:
read bytes
例外:
IOException

read

public int read(int[] d,
                int off,
                int len)
         throws IOException
Read int array from the stream

パラメータ:
d - input
off - offset
len - the number of int elements to read
戻り値:
the number of read bytes
例外:
IOException

read

public int read(float[] d,
                int off,
                int len)
         throws IOException
Read float array from the stream

パラメータ:
d - input
off - offset
len - the number of float elements to read
戻り値:
the number of read bytes
例外:
IOException

read

public int read(float[] d)
         throws IOException
Read float array from the stream

パラメータ:
d -
戻り値:
the number of read bytes
例外:
IOException

read

public int read(short[] d,
                int off,
                int len)
         throws IOException
Read short array from the stream

パラメータ:
d - input
off - offset
len - the number of short elements to read
戻り値:
the number of read bytes
例外:
IOException

read

public int read(short[] d)
         throws IOException
Read short array from the stream

パラメータ:
d -
戻り値:
the number of read bytes
例外:
IOException

hasNextChunk

protected boolean hasNextChunk()
                        throws IOException
例外:
IOException

read

public int read()
         throws IOException
定義:
クラス InputStream 内の read
例外:
IOException


Copyright © 2011. All Rights Reserved.