public class PostLh1Encoder extends java.lang.Object implements PostLzssEncoder
-- revision history --
$Log: PostLh1Encoder.java,v $
Revision 1.1 2002/12/01 00:00:00 dangan
[maintenance]
ソース整備
Revision 1.0 2002/07/31 00:00:00 dangan
add to version control
[maintenance]
ソース整備
タブ廃止
ライセンス文の修正
| Constructor and Description |
|---|
PostLh1Encoder(java.io.OutputStream out)
-lh1- 圧縮用 PostLzssEncoder を構築する。
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを解放する。
|
void |
flush()
この PostLzssEncoder にバッファリングされている
全ての 8ビット単位のデータを出力先の OutputStream に出力し、
出力先の OutputStream を flush() する。
このメソッドは圧縮率を変化させない。 |
int |
getDictionarySize()
-lh1-形式の LZSS辞書のサイズを得る。
|
int |
getMaxMatch()
-lh1-形式の LZSSの最大一致長を得る。
|
int |
getThreshold()
-lh1-形式の LZSSの圧縮、非圧縮の閾値を得る。
|
void |
writeCode(int code)
1byte の LZSS未圧縮のデータもしくは、
LZSS で圧縮された圧縮コードのうち一致長を書きこむ。
|
void |
writeOffset(int offset)
LZSS で圧縮された圧縮コードのうち一致位置を書きこむ。
|
public PostLh1Encoder(java.io.OutputStream out)
out - 圧縮データを受け取る出力ストリームpublic void writeCode(int code)
throws java.io.IOException
writeCode in interface PostLzssEncodercode - 1byte の LZSS未圧縮のデータもしくは、
LZSS で圧縮された圧縮コードのうち一致長java.io.IOException - 入出力エラーが発生した場合public void writeOffset(int offset)
throws java.io.IOException
writeOffset in interface PostLzssEncoderoffset - LZSS で圧縮された圧縮コードのうち一致位置java.io.IOException - 入出力エラーが発生した場合public void flush()
throws java.io.IOException
flush in interface PostLzssEncoderjava.io.IOException - 入出力エラーが発生した場合PostLzssEncoder.flush(),
BitOutputStream.flush()public void close()
throws java.io.IOException
close in interface PostLzssEncoderjava.io.IOException - 入出力エラーが発生した場合public int getDictionarySize()
getDictionarySize in interface PostLzssEncoderpublic int getMaxMatch()
getMaxMatch in interface PostLzssEncoderpublic int getThreshold()
getThreshold in interface PostLzssEncoder
When you found typographical errors or omissions, Please mail to cqw10305@nifty.com
The company name and product name which are used in this document, it is the trademark or registered trademark of each company generally.
Copyright © 2001-2002 Michel Ishizuka. All Rights Reserved.