|
LHA Library for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.gr.java_conf.dangan.util.lha.PostLh2Encoder
public class PostLh2Encoder
-lh2- 圧縮用 PostLzssEncoder。
-- revision history -- $Log: PostLh2Encoder.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 Summary | |
---|---|
PostLh2Encoder(java.io.OutputStream out)
-lh2- 圧縮用 PostLzssEncoder を構築する。 |
Method Summary | |
---|---|
void |
close()
この出力ストリームと、接続された出力ストリームを閉じ、 使用していたリソースを開放する。 |
void |
flush()
この PostLzssEncoder にバッファリングされている 全ての 8ビット単位のデータを出力先の OutputStream に出力し、 出力先の OutputStream を flush() する。 このメソッドは圧縮率を変化させない。 |
int |
getDictionarySize()
-lh2-形式の LZSS辞書のサイズを得る。 |
int |
getMaxMatch()
-lh2-形式の LZSSの最大一致長を得る。 |
int |
getThreshold()
-lh2-形式の LZSSの圧縮、非圧縮の閾値を得る。 |
void |
writeCode(int code)
1byte の LZSS未圧縮のデータもしくは、 LZSS で圧縮された圧縮コードのうち一致長を書きこむ。 |
void |
writeOffset(int offset)
LZSS で圧縮された圧縮コードのうち一致位置を書きこむ。 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostLh2Encoder(java.io.OutputStream out)
out
- 圧縮データを受け取る出力ストリームMethod Detail |
---|
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) throws java.io.IOException
writeOffset
in interface PostLzssEncoder
offset
- LZSS で圧縮された圧縮コードのうち一致位置
java.io.IOException
- 入出力エラーが発生した場合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
|
LHA Library for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |