fuku.eb4j.io
クラス EBZipInputStream

java.lang.Object
  上位を拡張 fuku.eb4j.io.BookInputStream
      上位を拡張 fuku.eb4j.io.EBZipInputStream
すべての実装されたインタフェース:
EBZipConstants

public final class EBZipInputStream
extends BookInputStream
implements EBZipConstants

EBZIP形式の書籍入力ストリームクラス。

バージョン:
0.3.4
作成者:
Hisaya FUKUMOTO

フィールドの概要
 
クラス fuku.eb4j.io.BookInputStream から継承されたフィールド
_cache, _cachePos, _filePos, _info, _stream, PAGE_SIZE
 
インタフェース fuku.eb4j.io.EBZipConstants から継承されたフィールド
EBZIP_DEFAULT_LEVEL, EBZIP_HEADER_SIZE, EBZIP_MAX_LEVEL
 
メソッドの概要
 long getCRC()
          このファイルのCRCを返します。
 int getLevel()
          このファイルの圧縮レベルを返します。
 int read(byte[] b, int off, int len)
          EBZIP形式のファイルから最大lenバイトのデータをバイト配列に読み込みます。
 
クラス fuku.eb4j.io.BookInputStream から継承されたメソッド
close, finalize, getFileSize, getOffset, getPage, getPosition, getRealFileSize, getSliceSize, open, read, readFully, readFully, readRaw, readRaw, readRawFully, readRawFully, seek, seek
 
クラス java.lang.Object から継承されたメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getLevel

public int getLevel()
このファイルの圧縮レベルを返します。

戻り値:
圧縮レベル

getCRC

public long getCRC()
このファイルのCRCを返します。

戻り値:
CRC

read

public int read(byte[] b,
                int off,
                int len)
         throws EBException
EBZIP形式のファイルから最大lenバイトのデータをバイト配列に読み込みます。

定義:
クラス BookInputStream 内の read
パラメータ:
b - データの読み込み先のバッファ
off - データの開始オフセット
len - 読み込まれる最大バイト数
戻り値:
バッファに読み込まれたバイトの合計数 (ストリームの終わりに達してデータがない場合は-1)
例外:
EBException - 入出力エラーが発生した場合


Copyright © 2002-2004 Hisaya FUKUMOTO. All rights reserved.