|
LHA Library for Java | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.gr.java_conf.dangan.util.lha.PreLh3Decoder
-lh3- 解凍用の PreLzssDecoder。
-- revision history -- $Log: PreLh3Decoder.java,v $ Revision 1.1 2002/12/01 00:00:00 dangan [maintenance] ソース整備 Revision 1.0 2002/08/05 00:00:00 dangan add to version control [bug fix] available の計算が甘かったのを修正。 [maintenance] ソース整備 タブ廃止 ライセンス文の修正
コンストラクタの概要 | |
PreLh3Decoder(InputStream in)
-lh3- 解凍用 PreLzssDecoder を構築する。 |
|
PreLh3Decoder(InputStream in,
int CodeTableBits,
int OffHiTableBits)
-lh3- 解凍用 PreLzssDecoder を構築する。 |
メソッドの概要 | |
int |
available()
ブロックせずに読み出すことの出来る最低バイト数を得る。 |
void |
close()
このストリームを閉じ、使用していた全ての資源を解放する。 |
int |
getDictionarySize()
-lh3-形式の LZSS辞書のサイズを得る。 |
int |
getMaxMatch()
-lh3-形式の LZSSの最大一致長を得る。 |
int |
getThreshold()
-lh3-形式の LZSSの圧縮、非圧縮の閾値を得る。 |
void |
mark(int readLimit)
接続された入力ストリームの現在位置にマークを設定し、 reset() メソッドでマークした時点の 読み込み位置に 戻れるようにする。 |
boolean |
markSupported()
接続された入力ストリームが mark() と reset() を サポートするかを得る。 |
int |
readCode()
-lh3- で圧縮された 1byte のLZSS未圧縮のデータ、 もしくは圧縮コードのうち一致長を読み込む。 |
int |
readOffset()
-lh3- で圧縮された LZSS圧縮コードのうち一致位置を読み込む。 |
void |
reset()
接続された入力ストリームの読み込み位置を最後に mark() メソッドが呼び出されたときの位置に設定する。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public PreLh3Decoder(InputStream in)
in
- 圧縮データを供給する入力ストリームpublic PreLh3Decoder(InputStream in, int CodeTableBits, int OffHiTableBits)
in
- 圧縮データを供給する入力ストリームCodeTableBits
- code 部を復号するために使用する
テーブルのサイズをビット長で指定する。
12 を指定すれば 4096 のルックアップテーブルを生成する。OffHiTableBits
- offHi 部を復号するために使用する
テーブルのサイズをビット長で指定する。
8 を指定すれば 256 のルックアップテーブルを生成する。
IllegalArgumentException
- CodeTableBits, OffHiTableBits が 0以下の場合メソッドの詳細 |
public int readCode() throws IOException
PreLzssDecoder
内の readCode
IOException
- 入出力エラーが発生した場合
EOFException
- EndOfStreamに達した場合
BadHuffmanTableException
- ハフマン木を構成するための
ハフマン符号長の表が不正なため、
ハフマン復号器が生成できない場合public int readOffset() throws IOException
PreLzssDecoder
内の readOffset
IOException
- 入出力エラーが発生した場合public void mark(int readLimit)
PreLzssDecoder
内の mark
readLimit
- マーク位置に戻れる限界のバイト数。
このバイト数を超えてデータを読み
込んだ場合 reset()できなくなる可
能性がある。PreLzssDecoder.mark(int)
public void reset() throws IOException
PreLzssDecoder
内の reset
IOException
- 入出力エラーが発生した場合public boolean markSupported()
PreLzssDecoder
内の markSupported
public int available() throws IOException
PreLzssDecoder
内の available
IOException
- 入出力エラーが発生した場合PreLzssDecoder.available()
public void close() throws IOException
PreLzssDecoder
内の close
IOException
- 入出力エラーが発生した場合public int getDictionarySize()
PreLzssDecoder
内の getDictionarySize
public int getMaxMatch()
PreLzssDecoder
内の getMaxMatch
public int getThreshold()
PreLzssDecoder
内の getThreshold
|
LHA Library for Java | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |