public class PostLz5Encoder extends java.lang.Object implements PostLzssEncoder
-- revision history -- $Log: PostLz5Encoder.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 [bug fix] -lz5- の MaxMatch は 16 でなく 18 だった。 flush() で出力できるデータを出力していなかったのを修正。 [maintenance] ソース整備 タブ廃止 ライセンス文の修正
Constructor and Description |
---|
PostLz5Encoder(java.io.OutputStream out)
-lz5- 圧縮用 PostLzssEncoder を構築する。
|
Modifier and Type | Method and Description |
---|---|
void |
close()
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
|
void |
flush()
この PostLzssEncoder にバッファリングされている
出力可能なデータを出力先の OutputStream に出力し、
出力先の OutputStream を flush() する。
このメソッドは出力不可能な 最大15バイトのデータを バッファリングしたまま 出力しない。 このメソッドは圧縮率を変化させない。 |
int |
getDictionarySize()
-lz5-形式の LZSS辞書のサイズを得る。
|
int |
getMaxMatch()
-lz5-形式の LZSSの最長一致長を得る。
|
int |
getThreshold()
-lz5-形式の LZSSの圧縮、非圧縮の閾値を得る。
|
void |
writeCode(int code)
1byte の LZSS未圧縮のデータもしくは、
LZSS で圧縮された圧縮コードのうち一致長を書きこむ。
|
void |
writeOffset(int offset)
LZSS で圧縮された圧縮コードのうち一致位置を書きこむ。
|
public PostLz5Encoder(java.io.OutputStream out)
out
- 圧縮データを出力する出力ストリームpublic void writeCode(int code) throws java.io.IOException
writeCode
in interface PostLzssEncoder
code
- 1byte の LZSS未圧縮のデータもしくは、
LZSS で圧縮された圧縮コードのうち一致長java.io.IOException
- 入出力エラーが発生した場合public void writeOffset(int offset)
writeOffset
in interface PostLzssEncoder
offset
- LZSS で圧縮された圧縮コードのうち一致位置public void flush() throws java.io.IOException
flush
in interface PostLzssEncoder
java.io.IOException
- 入出力エラーが発生した場合PostLzssEncoder.flush()
public void close() throws java.io.IOException
close
in interface PostLzssEncoder
java.io.IOException
- 入出力エラーが発生した場合public int getDictionarySize()
getDictionarySize
in interface PostLzssEncoder
public int getMaxMatch()
getMaxMatch
in interface PostLzssEncoder
public 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.