com.lizardtech.djvu
Interface Codec

All Superinterfaces:
DjVuInterface
All Known Implementing Classes:
Bookmark, DjVmDir, DjVuAnno, DjVuInfo, DjVuText, IWPixmap, JB2Dict, JB2Image, Palette

public interface Codec
extends DjVuInterface

Creates a contract that an object may be initialized simply by passing a DataPool with the relevant chunk. This is used for decoding a document without knowing the particulars about a chunk type at runtime.

Version:
$Revision: 1.3 $
Author:
Bill C. Riemers

Method Summary
 void decode(DataPool pool)
          Initialize the object from the specified data.
 boolean isImageData()
          Query if this is image data.
 
Methods inherited from interface com.lizardtech.djvu.DjVuInterface
getDjVuOptions, setDjVuOptions
 

Method Detail

decode

void decode(DataPool pool)
            throws java.io.IOException
Initialize the object from the specified data.

Parameters:
pool - data to decode
Throws:
java.io.IOException - if an error occurs

isImageData

boolean isImageData()
Query if this is image data. Any data which will effects GMap data should return true.

Returns:
true if effects image data