- CachedInputStream - Class in jp.gr.java_conf.dangan.io
-
キャッシュを使用して高速化するための入力ストリーム。
BufferedInputStream とは read系メソッドが synchronized
されていないため、同期処理によるロスがない、mark/reset は
キャッシュ内の読み込み位置の移動で行えるときのみサポートであり、
それ以上は接続された入力ストリームの性能による、等の違いがある。
- CachedInputStream(InputStream) - Constructor for class jp.gr.java_conf.dangan.io.CachedInputStream
-
デフォルトのサイズのキャッシュを持つ
CachedInputStreamを構築する。
- CachedInputStream(InputStream, int) - Constructor for class jp.gr.java_conf.dangan.io.CachedInputStream
-
指定されたサイズのキャッシュを持つ
CachedInputStreamを構築する。
- CCITT_INIT - Static variable in class jp.gr.java_conf.dangan.util.lha.CRC16
-
CCITT の X.25という規格の crc の初期値。
- CCITT_POLY - Static variable in class jp.gr.java_conf.dangan.util.lha.CRC16
-
CCITT の X.25という規格の
多項式 x^16 + x^12 + x^5 + 1 をビット表現にしたもの。
- checkHeaderData(byte[]) - Static method in class jp.gr.java_conf.dangan.util.lha.LhaHeader
-
ヘッダデータが正当であるかをチェックする。
- childNode(int) - Method in class jp.gr.java_conf.dangan.util.lha.DynamicHuffman
-
ノードが葉でないノードなら子ノードのノード番号、
ノードが葉ならノードの持つデータを全ビット反転したものを得る。
子ノードのノード番号は兄弟特性と利用するため、
node の 0 の子ノードの場合 childNode( node )
node の 1 の子ノードの場合 childNode( node ) - 1
となる。
- clone() - Method in class jp.gr.java_conf.dangan.util.lha.DynamicHuffman
-
このオブジェクトの現在の状態を持つコピーを作成して返す。
- clone() - Method in class jp.gr.java_conf.dangan.util.lha.LhaHeader
-
このオブジェクトのコピーを作成して返す。
- clone() - Method in class jp.gr.java_conf.dangan.util.MsdosDate
-
このオブジェクトのコピーを返す。
- clone() - Method in class jp.gr.java_conf.dangan.util.WindowsDate
-
このオブジェクトのコピーを返す。
- close() - Method in class jp.gr.java_conf.dangan.io.BitInputStream
-
この入力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.io.BitOutputStream
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.io.CachedInputStream
-
この入力ストリームを閉じ、使用していた
全てのリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.io.DisconnectableInputStream
-
接続された入力ストリームとの接続を解除する。
このメソッドは disconnect() を呼ぶだけである。
- close() - Method in class jp.gr.java_conf.dangan.io.DisconnectableOutputStream
-
接続された出力ストリームとの接続を解除する。
このメソッドは disconnect() を呼び出すだけである。
- close() - Method in class jp.gr.java_conf.dangan.io.LimitedInputStream
-
この入力ストリームを閉じ、使用していた
全てのリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LhaFile
-
この LHA書庫ファイルを閉じる。
その際、このLhaFileが発行した全ての
InputStreamは強制的に閉じられる。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LhaImmediateOutputStream
-
出力先に全てのデータを出力し、ストリームを閉じる。
また、使用していた全てのリソースを解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LhaInputStream
-
この入力ストリームを閉じ、使用していた
全てのリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LhaOutputStream
-
出力先に全てのデータを出力し、
ストリームを閉じる。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LhaRetainedOutputStream
-
出力先に全てのデータを出力し、ストリームを閉じる。
また、使用していた全てのリソースを解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LzssInputStream
-
この入力ストリームを閉じ、使用していた
全てのリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.LzssOutputStream
-
このクラスに貯えられた全てのデータを接続された
PostLzssEncoder に出力し この出力ストリームと、
接続されたストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PostLh1Encoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PostLh2Encoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PostLh3Encoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PostLh5Encoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PostLz5Encoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PostLzsEncoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを解放する。
- close() - Method in interface jp.gr.java_conf.dangan.util.lha.PostLzssEncoder
-
この出力ストリームと、接続された出力ストリームを閉じ、
使用していたリソースを開放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PreLh1Decoder
-
このストリームを閉じ、使用していた全ての資源を解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PreLh2Decoder
-
このストリームを閉じ、使用していた全ての資源を解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PreLh3Decoder
-
このストリームを閉じ、使用していた全ての資源を解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PreLh5Decoder
-
このストリームを閉じ、使用していた全ての資源を解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PreLz5Decoder
-
このストリームを閉じ、使用していた全ての資源を解放する。
- close() - Method in class jp.gr.java_conf.dangan.util.lha.PreLzsDecoder
-
この出力とストリームと
接続されていたストリームを閉じ、
使用していたリソースを解放する。
- close() - Method in interface jp.gr.java_conf.dangan.util.lha.PreLzssDecoder
-
この入力ストリームを閉じ、使用していた
全てのリソースを開放する。
- closeEntry() - Method in class jp.gr.java_conf.dangan.util.lha.LhaImmediateOutputStream
-
現在出力中のエントリを閉じ、次のエントリが出力可能な状態にする。
putNextEntryNotYetCompressed() で開いたエントリを閉じる場合
このメソッドは圧縮に失敗した(圧縮後サイズが圧縮前サイズを上回った)場合、
エントリ全体を書き込み先 の RandomAccessFile から削除する。
この削除処理は単に ファイルポインタを エントリ開始位置まで巻き戻すだけなので
RandomAccessFile に setLength() が無い jdk1.1 以前では
エントリを無圧縮(もしくは他の圧縮法)で再出力しない場合、
書庫データの終端以降に圧縮に失敗した不完全なデータが残ったままになる。
- closeEntry() - Method in class jp.gr.java_conf.dangan.util.lha.LhaInputStream
-
現在読み取り中のエントリを閉じ、
次のエントリを読みこめるようにストリームを設定する。
- closeEntry() - Method in class jp.gr.java_conf.dangan.util.lha.LhaOutputStream
-
現在出力中のエントリを閉じ、次のエントリが出力可能な状態にする。
圧縮に失敗した(圧縮後サイズが圧縮前サイズを上回った)場合、
解凍し無圧縮で格納する。エントリのサイズが大きい場合、
この処理にはかなりの時間がかかる。
- closeEntry() - Method in class jp.gr.java_conf.dangan.util.lha.LhaRetainedOutputStream
-
現在出力中のエントリを閉じ、次のエントリが出力可能な状態にする。
圧縮に失敗した(圧縮後サイズが圧縮前サイズを上回った)場合、
解凍し無圧縮で格納する。エントリのサイズが大きい場合、
この処理にはかなりの時間がかかる。
- codeToNode(int) - Method in class jp.gr.java_conf.dangan.util.lha.DynamicHuffman
-
データからノード番号を得る。
- CompressMethod - Class in jp.gr.java_conf.dangan.util.lha
-
LHAの各種定数を定義する。
- connectDecoder(InputStream, String, Properties, long) - Static method in class jp.gr.java_conf.dangan.util.lha.CompressMethod
-
property に設定された生成式を利用して
in から method の圧縮法で圧縮されたデータを解凍し
供給する入力ストリームを構築する。
- connectEncoder(OutputStream, String, Properties) - Static method in class jp.gr.java_conf.dangan.util.lha.CompressMethod
-
property に設定された生成式を利用して
method の圧縮法でデータを圧縮し、outに出力するストリームを構築する。
- CRC16 - Class in jp.gr.java_conf.dangan.util.lha
-
CRC16値を算出するためのクラス。
クラス内の定数、処理、説明は
- CRC16() - Constructor for class jp.gr.java_conf.dangan.util.lha.CRC16
-
LHAで使用される 多項式と初期値を持つ CRC16を生成する。
- CRC16(int) - Constructor for class jp.gr.java_conf.dangan.util.lha.CRC16
-
poly で指定される 多項式を持つ CRC16を生成する。
初期値は poly が CRC16.CCITT_POLY であれば
CRC16.CCITT_INIT を そうでなければ
CRC16.DefaultINIT を使用する。
- CRC16(int, int) - Constructor for class jp.gr.java_conf.dangan.util.lha.CRC16
-
poly で指定される 多項式と initで指定される初期値を持つ
CRC16を生成する。
- CRC16(int[], int) - Constructor for class jp.gr.java_conf.dangan.util.lha.CRC16
-
crcTable で指定される CRC算出用表と
initで指定される初期値を持つ CRC16を作成する。
- CRC_ANSY_INIT - Static variable in class jp.gr.java_conf.dangan.util.lha.CRC16
-
LHAで使用される crc の初期値。
作者が勝手に設定した値であり、
CRC-ANSY でこの値が初期値として
定められているかは知らない。
- CRC_ANSY_POLY - Static variable in class jp.gr.java_conf.dangan.util.lha.CRC16
-
CRC-ANSY または CRC-16 として有名な
多項式 x^16 + x^15 + x^2 + 1 をビット表現にしたもの。
- createInstance(String, Object[]) - Static method in class jp.gr.java_conf.dangan.lang.reflect.Factory
-
classname で示されるクラスのインスタンスを生成する。
コンストラクタには args の型と一致するものを使用する。
- createInstance(Class, Object[]) - Static method in class jp.gr.java_conf.dangan.lang.reflect.Factory
-
type で示されるクラスのインスタンスを生成する。
コンストラクタには args の型と一致するものを使用する。
- createInstance(byte[], Properties) - Static method in class jp.gr.java_conf.dangan.util.lha.LhaHeader
-
property の キー"lha.header" に結び付けられた生成式を使用して
HeaderData から LhaHeader のインスタンスを生成する。
- createSearchReturn(int, int) - Static method in class jp.gr.java_conf.dangan.util.lha.LzssOutputStream
-
search の戻り値を生成する。
search は一致位置を返すが、一致長も同時に返したほうが
非常に便利であるため、一致位置も一致長も必要なビット数が
少ないことを利用して int型でやり取りする。
そのための統一した処理を約束する関数。
この関数で生成された値から 一致位置や一致長を取り出す際には
getMatchLen、 getMatchPos を使用する。
- createTable(int[]) - Static method in class jp.gr.java_conf.dangan.util.lha.StaticHuffman
-
LenList から、ハフマン復号用のテーブルを生成する。
- createTableAndTree(int[], int) - Static method in class jp.gr.java_conf.dangan.util.lha.StaticHuffman
-
LenList から、ハフマン復号用のテーブルと木を生成する。
テーブルは TableBits の大きさを持ち、それ以上の部分は木に格納される。
戻り値は new short[][]{ Table, Tree[0], Tree[1] } となる。
テーブルを引いた結果もしくは木を走査した際、負の値を得た場合、
それは復号化されたコードを全ビット反転したものである。
正の値であればそれは 木を走査するための index であり、
Tree[bit][index] のように使用する。