|
LHA Library for Java | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.gr.java_conf.dangan.util.lha.PostLh5Encoder
-lh4-, -lh5-, -lh6-, -lh7- 圧縮用 PostLzssEncoder。
-- revision history -- $Log: PostLh5Encoder.java,v $ Revision 1.4 2002/12/08 00:00:00 dangan [change] クラス名 を PostLh5EncoderCombo から PostLh5Encoder に変更。 Revision 1.3 2002/12/06 00:00:00 dangan [maintenance] ソース整備 Revision 1.2 2002/12/01 00:00:00 dangan [change] flush() されないかぎり 接続された OutputStream をflush() しないように変更。 Revision 1.1 2002/12/01 00:00:00 dangan [bug fix] writeOutGroup でローカル変数 offLenFreq を使用しなければ ならない部分で this.offLenFreq を使用していた。 [maintenance] PostLh5Encoder から受け継いだインスタンスフィールド buffer, codeFreq, offLenFreq 廃止 ソース整備 Revision 1.0 2002/07/31 00:00:00 dangan add to version control [improvement] DivideNum を導入する事によって処理するパターン数の減少を図る。 [maintenance] ソース整備 タブ廃止 ライセンス文の修正
コンストラクタの概要 | |
PostLh5Encoder(OutputStream out)
-lh5- 圧縮用 PostLzssEncoder を構築する。 |
|
PostLh5Encoder(OutputStream out,
String method)
-lh4-, -lh5-, -lh6-, -lh7- 圧縮用 PostLzssEncoder を構築する。 |
|
PostLh5Encoder(OutputStream out,
String method,
int BufferSize)
-lh4-, -lh5-, -lh6-, -lh7- 圧縮用 PostLzssEncoder を構築する。 |
|
PostLh5Encoder(OutputStream out,
String method,
int BlockNum,
int BlockSize,
int DivideNum)
-lh4-, -lh5-, -lh6-, -lh7- 圧縮用 PostLzssEncoder を構築する。 |
メソッドの概要 | |
void |
close()
この出力ストリームと、接続された出力ストリームを閉じ、 使用していたリソースを開放する。 |
void |
flush()
この PostLzssEncoder にバッファリングされている全ての 8ビット単位のデータを出力先の OutputStream に出力し、 出力先の OutputStream を flush() する。 |
int |
getDictionarySize()
この PostLh5Encoder が扱うLZSS辞書のサイズを得る。 |
int |
getMaxMatch()
この PostLh5Encoder が扱うLZSSの最長一致長を得る。 |
int |
getThreshold()
この PostLh5Encoder が扱うLZSSの圧縮、非圧縮の閾値を得る。 |
void |
writeCode(int code)
1byte の LZSS未圧縮のデータもしくは、 LZSS で圧縮された圧縮コードのうち一致長を書きこむ。 |
void |
writeOffset(int offset)
LZSS で圧縮された圧縮コードのうち一致位置を書きこむ。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public PostLh5Encoder(OutputStream out)
out
- 圧縮データを受け取る OutputStreampublic PostLh5Encoder(OutputStream out, String method)
out
- 圧縮データを受け取る OutputStreammethod
- 圧縮法を示す文字列IllegalArgumentException
- method が上記以外の場合public PostLh5Encoder(OutputStream out, String method, int BufferSize)
out
- 圧縮データを受け取る OutputStreammethod
- 圧縮法を示す文字列BufferSize
- LZSS圧縮データを退避しておく
バッファのサイズ
IllegalArgumentException
- public PostLh5Encoder(OutputStream out, String method, int BlockNum, int BlockSize, int DivideNum)
out
- 圧縮データを受け取る OutputStreammethod
- 圧縮法を示す文字列BlockNum
- ブロック数BlockSize
- 1ブロックのバイト数DivideNum
- 最大分割数
IllegalArgumentException
- メソッドの詳細 |
public void writeCode(int code) throws IOException
PostLzssEncoder
内の writeCode
code
- 1byte の LZSS未圧縮のデータもしくは、
LZSS で圧縮された圧縮コードのうち一致長
IOException
- 入出力エラーが発生した場合public void writeOffset(int offset)
PostLzssEncoder
内の writeOffset
offset
- LZSS で圧縮された圧縮コードのうち一致位置public void flush() throws IOException
PostLzssEncoder
内の flush
IOException
- 入出力エラーが発生した場合PostLzssEncoder.flush()
,
BitOutputStream.flush()
public void close() throws IOException
PostLzssEncoder
内の close
IOException
- 入出力エラーが発生した場合public int getDictionarySize()
PostLzssEncoder
内の getDictionarySize
public int getMaxMatch()
PostLzssEncoder
内の getMaxMatch
public int getThreshold()
PostLzssEncoder
内の getThreshold
|
LHA Library for Java | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |