com.lizardtech.djvu
Class DjVuInfo

java.lang.Object
  extended by com.lizardtech.djvu.DjVuObject
      extended by com.lizardtech.djvu.DjVuInfo
All Implemented Interfaces:
Codec, DjVuInterface, java.lang.Cloneable

public class DjVuInfo
extends DjVuObject
implements java.lang.Cloneable, Codec

This codec represents global information about a page.

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

Field Summary
 int dpi
          The scanned resolution.
 int flags
          Flags with addition details.
 double gamma
          The gamma correction factor.
 int height
          The height of the page in pixels at scanned resolution.
 int version
          The version of the format specification this page complies with.
 int width
          The width of the page in pixels at scanned resolution.
 
Fields inherited from class com.lizardtech.djvu.DjVuObject
hasReferences
 
Constructor Summary
DjVuInfo()
          Creates a new DjVuInfo object.
 
Method Summary
 java.lang.Object clone()
          Create a clone of this object.
static DjVuInfo createDjVuInfo(DjVuInterface ref)
          Creates an instance of DjVuInfo with the options interherited from the specified reference.
 void decode(DataPool pool)
          Decode this codec from the gived data source.
 boolean isImageData()
          Query if this is image data.
 
Methods inherited from class com.lizardtech.djvu.DjVuObject
checkLockTime, create, create, createSoftReference, createWeakReference, getDjVuOptions, getFromReference, invoke, setDjVuOptions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lizardtech.djvu.DjVuInterface
getDjVuOptions, setDjVuOptions
 

Field Detail

gamma

public double gamma
The gamma correction factor.


dpi

public int dpi
The scanned resolution.


flags

public int flags
Flags with addition details.


height

public int height
The height of the page in pixels at scanned resolution.


version

public int version
The version of the format specification this page complies with.


width

public int width
The width of the page in pixels at scanned resolution.

Constructor Detail

DjVuInfo

public DjVuInfo()
Creates a new DjVuInfo object.

Method Detail

isImageData

public boolean isImageData()
Query if this is image data.

Specified by:
isImageData in interface Codec
Returns:
false

createDjVuInfo

public static DjVuInfo createDjVuInfo(DjVuInterface ref)
Creates an instance of DjVuInfo with the options interherited from the specified reference.

Parameters:
ref - Object to interherit DjVuOptions from.
Returns:
a new instance of DjVuInfo.

clone

public java.lang.Object clone()
Create a clone of this object.

Overrides:
clone in class java.lang.Object
Returns:
the newly created object

decode

public void decode(DataPool pool)
            throws java.io.IOException
Decode this codec from the gived data source.

Specified by:
decode in interface Codec
Parameters:
pool - data source to decode
Throws:
java.io.IOException - if an error occurs