org.xerial.snappy
クラス SnappyOutputStream

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

public class SnappyOutputStream
extends OutputStream

This class implements a stream filter for writing compressed data using Snappy. The input data is blocked into 32KB size, and each block is compressed and then passed to the given OutputStream. The output data format is a sequence of (compressed chunk size, compressed data chunk binary...) pair.

作成者:
leo

フィールドの概要
protected  byte[] compressed
           
protected  OutputStream out
           
protected  byte[] uncompressed
           
 
コンストラクタの概要
SnappyOutputStream(OutputStream out)
           
SnappyOutputStream(OutputStream out, int blockSize)
           
 
メソッドの概要
 void close()
           
protected  void dump()
           
 void flush()
           
static int readInt(byte[] buffer, int pos)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
protected  void writeHeader()
           
static void writeInt(OutputStream out, int value)
           
 
クラス java.io.OutputStream から継承されたメソッド
write
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

out

protected final OutputStream out

uncompressed

protected byte[] uncompressed

compressed

protected byte[] compressed
コンストラクタの詳細

SnappyOutputStream

public SnappyOutputStream(OutputStream out)
                   throws IOException
例外:
IOException

SnappyOutputStream

public SnappyOutputStream(OutputStream out,
                          int blockSize)
                   throws IOException
例外:
IOException
メソッドの詳細

writeHeader

protected void writeHeader()
                    throws IOException
例外:
IOException

write

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

write

public void write(int b)
           throws IOException
定義:
クラス OutputStream 内の write
例外:
IOException

flush

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

writeInt

public static void writeInt(OutputStream out,
                            int value)
                     throws IOException
例外:
IOException

readInt

public static int readInt(byte[] buffer,
                          int pos)

dump

protected void dump()
             throws IOException
例外:
IOException

close

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


Copyright © 2011. All Rights Reserved.