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
| クラス 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.