public class PostLh3Encoder extends java.lang.Object implements PostLzssEncoder
$Log: PostLh3Encoder.java,v $ Revision 1.2 2002/12/06 00:00:00 dangan [maintenance] ソース整備 Revision 1.1 2002/12/01 00:00:00 dangan [change] flush() されないかぎり 接続された OutputStream をflush() しないように変更。 [maintenance] ソース整備。 Revision 1.0 2002/07/31 00:00:00 dangan add to version control [maintenance] ソース整備 タブ廃止 ライセンス文の修正
Constructor and Description |
---|
PostLh3Encoder(java.io.OutputStream out)
-lh3- 圧縮用 PostLzssEncoderを構築する。
バッファサイズにはデフォルト値が使用される。 |
PostLh3Encoder(java.io.OutputStream out,
int BufferSize)
-lh3- 圧縮用 PostLzssEncoderを構築する。
|
Modifier and Type | Method and Description |
---|---|
void |
close()
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
|
void |
flush()
この PostLzssEncoder にバッファリングされている全ての
8ビット単位のデータを出力先の OutputStream に出力し、
出力先の OutputStream を flush() する。
このメソッドは圧縮率を変化させる。 |
int |
getDictionarySize()
-lh3-形式の LZSS辞書のサイズを得る。
|
int |
getMaxMatch()
-lh3-形式の LZSSの最大一致長を得る。
|
int |
getThreshold()
-lh3-形式の LZSSの圧縮、非圧縮の閾値を得る。
|
void |
writeCode(int code)
1byte の LZSS未圧縮のデータもしくは、
LZSS で圧縮された圧縮コードのうち一致長を書きこむ。
|
void |
writeOffset(int offset)
LZSS で圧縮された圧縮コードのうち一致位置を書きこむ。
|
public PostLh3Encoder(java.io.OutputStream out)
out
- 圧縮データを受け取る出力ストリームpublic PostLh3Encoder(java.io.OutputStream out, int BufferSize)
out
- 圧縮データを受け取る出力ストリームBufferSize
- 静的ハフマン圧縮用のバッファサイズjava.lang.IllegalArgumentException
- BufferSize が小さすぎる場合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()
,
BitOutputStream.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.