Alphabetical Index: C

A B C D E F G H I J L M N O P R S T U W

C

CachedInputStream - class jp.gr.java_conf.dangan.io.CachedInputStream
キャッシュを使用して高速化するための入力ストリーム。
BufferedInputStream とは read系メソッドが synchronized されていないため、同期処理によるロスがない、mark/reset は キャッシュ内の読み込み位置の移動で行えるときのみサポートであり、 それ以上は接続された入力ストリームの性能による、等の違いがある。
 -- revision history --
 $Log: CachedInputStream.java,v $
 Revision 1.3  2002/12/05 00:00:00  dangan
 [maintenance]
     ソース整備

 Revision 1.2  2002/11/02 00:00:00  dangan
 [bug fix]
     available() でブロックせずに読み込める量よりも大きい値を返していた。

 Revision 1.1  2002/09/05 00:00:00  dangan
 [change]
     EndOfStream に達した後の read( new byte[0] ) や 
     read( byte[] buf, int off, 0 ) の戻り値を
     InputStream と同じく 0 になるようにした。

 Revision 1.0  2002/09/05 00:00:00  dangan
 add to version control
 [bug fix]
     mark() で 接続された in に渡す readLimit の計算が甘かったため、
     要求された readLimit に達する前にマーク位置が破棄される事があった。
     read( buf, off, len ) 内の System.arraycopy の呼び出しで 
     dst と src を逆にしていた。
 [change]
     EndOfStream に達した後の read( new byte[0] ) や
     read( buf, off,0 )  が -1 を返すように修正。
 [maintenance]
     タブ廃止
     ライセンス文の修正

 
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 field in class jp.gr.java_conf.dangan.util.lha.CRC16
CCITT の X.25という規格の crc の初期値。
CCITT_POLY - static field 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.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.io.LimitedInputStream
この入力ストリームを閉じ、使用していた 全てのリソースを開放する。
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 class 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 class 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 jp.gr.java_conf.dangan.util.lha.CompressMethod
LHAの各種定数を定義する。
 -- revision history --
 $Log: CompressMethod.java,v $
 Revision 1.1  2002/12/08 00:00:00  dangan
 [change]
     クラス名を LhaConstants から CompressMethod へと変更。

 Revision 1.0  2002/07/24 00:00:00  dangan
 add to version control
 [change]
     LhaUtil の connectExtractInputStream を connectDecoder として
     connectCompressOutputStream を connectEncoder として引き継ぐ。
     LhaUtil の CompressMethodTo????????? を引き継ぐ。
 [maintanance]
     ソース整備
     タブ廃止
     ライセンス文の修正

 
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 jp.gr.java_conf.dangan.util.lha.CRC16
CRC16値を算出するためのクラス。 クラス内の定数、処理、説明は
 C言語によるアルゴリズム辞典
   奥村晴彦著 技術評論社 
   ISBN4-87408-414-1 C3055 2400円(購入当時)
 
によった。
 -- revision history --
 $Log: CRC16.java,v $
 Revision 1.0  2002/07/24 00:00:00  dangan
 add to version control
 [maintanance]
     ソース整備
     タブ廃止
     ライセンス文の変更

 
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 field in class jp.gr.java_conf.dangan.util.lha.CRC16
LHAで使用される crc の初期値。 作者が勝手に設定した値であり、 CRC-ANSY でこの値が初期値として 定められているかは知らない。
CRC_ANSY_POLY - static field in class jp.gr.java_conf.dangan.util.lha.CRC16
CRC-ANSY または CRC-16 として有名な 多項式 x^16 + x^15 + x^2 + 1 をビット表現にしたもの。
createInstance(byte[],Properties) - static method in class jp.gr.java_conf.dangan.util.lha.LhaHeader
property の キー"lha.header" に結び付けられた生成式を使用して HeaderData から LhaHeader のインスタンスを生成する。
createInstance(Class,Object[]) - static method in class jp.gr.java_conf.dangan.lang.reflect.Factory
type で示されるクラスのインスタンスを生成する。 コンストラクタには args の型と一致するものを使用する。
createInstance(String,Object[]) - static method in class jp.gr.java_conf.dangan.lang.reflect.Factory
classname で示されるクラスのインスタンスを生成する。 コンストラクタには args の型と一致するものを使用する。
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] のように使用する。

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.