com.lizardtech.djvu
Class DjVuOptions

java.lang.Object
  extended by com.lizardtech.djvu.DjVuOptions

public class DjVuOptions
extends java.lang.Object

This is a factory which stores standard encoding options. Each class implementing DjVuInterface or dirived from DjVuObject should be added here. When a DjVuInterface class creates a new Object, it will use this factory. That way even the core decoding classes may be overloaded simply by setting the DjVuOptions of the top level class. Use of this factor also greatly speeds up the initialization of Microsoft's implementation of Java 1.1.

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

Field Summary
static boolean BEZIERGAMMA
          This should not be changed unless you know what you are doing.
static boolean COLLECT_GARBAGE
          True if garbage collection should be invoked manually on a regular basis.
static java.io.PrintStream err
           
static boolean NOCTX_ACTIVE
          This should not be changed unless you know what you are doing.
static boolean NOCTX_BUCKET_ACTIVE
          This should not be changed unless you know what you are doing.
static boolean NOCTX_BUCKET_UPPER
          This should not be changed unless you know what you are doing.
static boolean NOCTX_EXPECT
          This should not be changed unless you know what you are doing.
static java.io.PrintStream out
           
static java.lang.String VERSION
          The build version of this code.
 
Constructor Summary
DjVuOptions()
           
 
Method Summary
 Codec createBookmark()
          Create the an instance of the Bookmark class without loading the class until runtime.
 Codec createDjVuAnno()
          Create the an instance of the DjVuAnno class without loading the class until runtime.
 Codec createDjVuText()
          Create the an instance of the DjVuText class without loading the class until runtime.
 java.lang.Class getAnnoLineClass()
          Get the class object to use for AnnoLine.
 java.lang.Class getAnnoOvalClass()
          Get the class object to use for AnnoOval.
 java.lang.Class getAnnoPolyClass()
          Get the class object to use for Poly.
 java.lang.Class getAnnoRectClass()
          Get the class object to use for AnnoRect.
 java.lang.Class getAnnoTextClass()
          Get the class object to use for anno.Text.
 java.lang.Class getBookmarkClass()
          Get the class object to use for Bookmark.
 java.lang.Class getBSInputStreamClass()
          Get the class object to use for BSInputStream.
 java.lang.Class getCachedInputStreamClass()
          Get the class object to use for DataPool.
 java.lang.Class getDataPoolClass()
          Get the class object to use for DataPool.
 java.lang.Class getDjVmDirClass()
          Get the class object to use for DjVmDir.
 java.lang.Class getDjVuAnnoClass()
          Get the class object to use for DjVuAnno.
 java.lang.Class getDjVuInfoClass()
          Get the class object to use for DjVuInfo.
 java.lang.Class getDjVuPageClass()
          Get the class object to use for DjVuPage.
 java.lang.Class getDjVuTextClass()
          Get the class object to use for DjVuText.
 java.lang.Class getDocumentClass()
          Get the class object to use for Document
 java.lang.Class getGBitmapClass()
          Get the class object to use for GBitmap.
 java.lang.Class getGPixmapClass()
          Get the class object to use for GPixmap.
 java.lang.Class getIFFEnumerationClass()
          Get the class object to use for IFFEnumeration.
 java.lang.Class getIWBitmapClass()
          Get the class object to use for IWBitmap.
 java.lang.Class getIWBlockClass()
          Get the class object to use for IWBlock.
 java.lang.Class getIWCodecClass()
          Get the class object to use for IWCodec.
 java.lang.Class getIWMapClass()
          Get the class object to use for IWMap.
 java.lang.Class getIWPixmapClass()
          Get the class object to use for IWPixmap.
 java.lang.Class getJB2DecodeClass()
          Get the class object to use for JB2Decode.
 java.lang.Class getJB2DictClass()
          Get the class object to use for JB2Dict.
 java.lang.Class getJB2ImageClass()
          Get the class object to use for JB2Image.
 java.lang.Class getJB2ShapeClass()
          Get the class object to use for JB2Shape.
 java.lang.Class getPaletteClass()
          Get the class object to use for Palette.
 java.lang.Class getZPCodecClass()
          Get the class object to use for ZPCodec.
 void setAnnoLineClass(java.lang.Class c)
          Set the class object to use for AnnoLine.
 void setAnnoOvalClass(java.lang.Class c)
          Set the class object to use for AnnoOval.
 void setAnnoPolyClass(java.lang.Class c)
          Set the class object to use for Poly.
 void setAnnoRectClass(java.lang.Class c)
          Set the class object to use for anno.Rect.
 void setAnnoTextClass(java.lang.Class c)
          Set the class object to use for anno.Text.
 void setBookmarkClass(java.lang.Class c)
          Set the class object to use for Bookmark.
 void setBSInputStreamClass(java.lang.Class c)
          Set the class object to use for BSInputStream.
 void setCachedInputStreamClass(java.lang.Class c)
          Set the class object to use for DataPool.
 void setDataPoolClass(java.lang.Class c)
          Set the class object to use for DataPool.
 void setDjVmDirClass(java.lang.Class c)
          Set the class object to use for DjVmDir.
 void setDjVuAnnoClass(java.lang.Class c)
          Set the class object to use for DjVuAnno.
 void setDjVuInfoClass(java.lang.Class c)
          Set the class object to use for DjVuInfo.
 void setDjVuPageClass(java.lang.Class c)
          Set the class object to use for DjVuPage.
 void setDjVuTextClass(java.lang.Class c)
          Set the class object to use for DjVuText.
 void setDocumentClass(java.lang.Class c)
          Set the class object to use for Document
 void setGBitmapClass(java.lang.Class c)
          Set the class object to use for GBitmap.
 void setGPixmapClass(java.lang.Class c)
          Set the class object to use for GPixmap.
 void setIFFEnumerationClass(java.lang.Class c)
          Set the class object to use for IFFEnumeration.
 void setIWBitmapClass(java.lang.Class c)
          Set the class object to use for IWBitmap.
 void setIWBlockClass(java.lang.Class c)
          Set the class object to use for IWBlock.
 void setIWCodecClass(java.lang.Class c)
          Set the class object to use for IWCodec.
 void setIWMapClass(java.lang.Class c)
          Set the class object to use for IWMap.
 void setIWPixmapClass(java.lang.Class c)
          Set the class object to use for IWPixmap.
 void setJB2DecodeClass(java.lang.Class classJB2Decode)
          Set the class object to use for JB2Decode.
 void setJB2DictClass(java.lang.Class c)
          Set the class object to use for JB2Dict.
 void setJB2ImageClass(java.lang.Class c)
          Set the class object to use for JB2Image.
 void setJB2ShapeClass(java.lang.Class c)
          Set the class object to use for JB2Shape.
 void setPaletteClass(java.lang.Class c)
          Set the class object to use for Palette.
 void setZPCodecClass(java.lang.Class c)
          Set the class object to use for ZPCodec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
The build version of this code.

See Also:
Constant Field Values

NOCTX_BUCKET_UPPER

public static boolean NOCTX_BUCKET_UPPER
This should not be changed unless you know what you are doing.


NOCTX_EXPECT

public static boolean NOCTX_EXPECT
This should not be changed unless you know what you are doing.


NOCTX_ACTIVE

public static boolean NOCTX_ACTIVE
This should not be changed unless you know what you are doing.


NOCTX_BUCKET_ACTIVE

public static boolean NOCTX_BUCKET_ACTIVE
This should not be changed unless you know what you are doing.


BEZIERGAMMA

public static boolean BEZIERGAMMA
This should not be changed unless you know what you are doing.


COLLECT_GARBAGE

public static boolean COLLECT_GARBAGE
True if garbage collection should be invoked manually on a regular basis. This greatly slows down the code, but it may be neccessary for a low memory device.


out

public static java.io.PrintStream out

err

public static java.io.PrintStream err
Constructor Detail

DjVuOptions

public DjVuOptions()
Method Detail

setBSInputStreamClass

public void setBSInputStreamClass(java.lang.Class c)
Set the class object to use for BSInputStream.

Parameters:
c - the class object.

getBSInputStreamClass

public java.lang.Class getBSInputStreamClass()
Get the class object to use for BSInputStream.

Returns:
BSInputStream.class or child

setBookmarkClass

public void setBookmarkClass(java.lang.Class c)
Set the class object to use for Bookmark.

Parameters:
c - the class object.

getBookmarkClass

public java.lang.Class getBookmarkClass()
Get the class object to use for Bookmark.

Returns:
Bookmark.class or child

setCachedInputStreamClass

public void setCachedInputStreamClass(java.lang.Class c)
Set the class object to use for DataPool.

Parameters:
c - the class object.

getCachedInputStreamClass

public java.lang.Class getCachedInputStreamClass()
Get the class object to use for DataPool.

Returns:
DataPool.class or child

setDataPoolClass

public void setDataPoolClass(java.lang.Class c)
Set the class object to use for DataPool.

Parameters:
c - the class object.

getDataPoolClass

public java.lang.Class getDataPoolClass()
Get the class object to use for DataPool.

Returns:
DataPool.class or child

setDjVmDirClass

public void setDjVmDirClass(java.lang.Class c)
Set the class object to use for DjVmDir.

Parameters:
c - the class object.

getDjVmDirClass

public java.lang.Class getDjVmDirClass()
Get the class object to use for DjVmDir.

Returns:
DjVmDir.class or child

setDjVuAnnoClass

public void setDjVuAnnoClass(java.lang.Class c)
Set the class object to use for DjVuAnno.

Parameters:
c - the class object.

getDjVuAnnoClass

public java.lang.Class getDjVuAnnoClass()
Get the class object to use for DjVuAnno.

Returns:
DjVuAnno.class or child

setDjVuInfoClass

public void setDjVuInfoClass(java.lang.Class c)
Set the class object to use for DjVuInfo.

Parameters:
c - the class object.

getDjVuInfoClass

public java.lang.Class getDjVuInfoClass()
Get the class object to use for DjVuInfo.

Returns:
DjVuInfo or child

setDjVuPageClass

public void setDjVuPageClass(java.lang.Class c)
Set the class object to use for DjVuPage.

Parameters:
c - the class object.

getDjVuPageClass

public java.lang.Class getDjVuPageClass()
Get the class object to use for DjVuPage.

Returns:
DjVuPage.class or child

setDjVuTextClass

public void setDjVuTextClass(java.lang.Class c)
Set the class object to use for DjVuText.

Parameters:
c - the class object.

getDjVuTextClass

public java.lang.Class getDjVuTextClass()
Get the class object to use for DjVuText.

Returns:
DjVuText.class or child

setDocumentClass

public void setDocumentClass(java.lang.Class c)
Set the class object to use for Document

Parameters:
c - the class object.

getDocumentClass

public java.lang.Class getDocumentClass()
Get the class object to use for Document

Returns:
Document.class or child

setGBitmapClass

public void setGBitmapClass(java.lang.Class c)
Set the class object to use for GBitmap.

Parameters:
c - the class object.

getGBitmapClass

public java.lang.Class getGBitmapClass()
Get the class object to use for GBitmap.

Returns:
GBitmap.class or child

setAnnoLineClass

public void setAnnoLineClass(java.lang.Class c)
Set the class object to use for AnnoLine.

Parameters:
c - the class object.

getAnnoLineClass

public java.lang.Class getAnnoLineClass()
Get the class object to use for AnnoLine.

Returns:
AnnoLine.class or child

setAnnoOvalClass

public void setAnnoOvalClass(java.lang.Class c)
Set the class object to use for AnnoOval.

Parameters:
c - the class object.

getAnnoOvalClass

public java.lang.Class getAnnoOvalClass()
Get the class object to use for AnnoOval.

Returns:
AnnoOval.class or child

setAnnoPolyClass

public void setAnnoPolyClass(java.lang.Class c)
Set the class object to use for Poly.

Parameters:
c - the class object.

getAnnoPolyClass

public java.lang.Class getAnnoPolyClass()
Get the class object to use for Poly.

Returns:
Poly.class or child

setAnnoRectClass

public void setAnnoRectClass(java.lang.Class c)
Set the class object to use for anno.Rect.

Parameters:
c - the class object.

getAnnoRectClass

public java.lang.Class getAnnoRectClass()
Get the class object to use for AnnoRect.

Returns:
anno.Rect.class or child

setAnnoTextClass

public void setAnnoTextClass(java.lang.Class c)
Set the class object to use for anno.Text.

Parameters:
c - the class object.

getAnnoTextClass

public java.lang.Class getAnnoTextClass()
Get the class object to use for anno.Text.

Returns:
anno.Text.class or child

setGPixmapClass

public void setGPixmapClass(java.lang.Class c)
Set the class object to use for GPixmap.

Parameters:
c - the class object.

getGPixmapClass

public java.lang.Class getGPixmapClass()
Get the class object to use for GPixmap.

Returns:
GPixmap.class or child

setIFFEnumerationClass

public void setIFFEnumerationClass(java.lang.Class c)
Set the class object to use for IFFEnumeration.

Parameters:
c - the class object.

getIFFEnumerationClass

public java.lang.Class getIFFEnumerationClass()
Get the class object to use for IFFEnumeration.

Returns:
IFFEnumeration.class or child

setIWBitmapClass

public void setIWBitmapClass(java.lang.Class c)
Set the class object to use for IWBitmap.

Parameters:
c - the class object.

getIWBitmapClass

public java.lang.Class getIWBitmapClass()
Get the class object to use for IWBitmap.

Returns:
IWBitmap.class or child

setIWBlockClass

public void setIWBlockClass(java.lang.Class c)
Set the class object to use for IWBlock.

Parameters:
c - the class object.

getIWBlockClass

public java.lang.Class getIWBlockClass()
Get the class object to use for IWBlock.

Returns:
IWBlock.class or child

setIWCodecClass

public void setIWCodecClass(java.lang.Class c)
Set the class object to use for IWCodec.

Parameters:
c - the class object.

getIWCodecClass

public java.lang.Class getIWCodecClass()
Get the class object to use for IWCodec.

Returns:
IWCodec.class or child

setIWMapClass

public void setIWMapClass(java.lang.Class c)
Set the class object to use for IWMap.

Parameters:
c - the class object.

getIWMapClass

public java.lang.Class getIWMapClass()
Get the class object to use for IWMap.

Returns:
IWMap.class or child

setIWPixmapClass

public void setIWPixmapClass(java.lang.Class c)
Set the class object to use for IWPixmap.

Parameters:
c - the class object.

getIWPixmapClass

public java.lang.Class getIWPixmapClass()
Get the class object to use for IWPixmap.

Returns:
IWPixmap.class or child

setJB2DecodeClass

public void setJB2DecodeClass(java.lang.Class classJB2Decode)
Set the class object to use for JB2Decode.

Parameters:
classJB2Decode - the class object.

getJB2DecodeClass

public java.lang.Class getJB2DecodeClass()
Get the class object to use for JB2Decode.

Returns:
The new instance of the JB2Decode class.

setJB2DictClass

public void setJB2DictClass(java.lang.Class c)
Set the class object to use for JB2Dict.

Parameters:
c - the class object.

getJB2DictClass

public java.lang.Class getJB2DictClass()
Get the class object to use for JB2Dict.

Returns:
The new instance of the JB2Dict class.

setJB2ImageClass

public void setJB2ImageClass(java.lang.Class c)
Set the class object to use for JB2Image.

Parameters:
c - the class object.

getJB2ImageClass

public java.lang.Class getJB2ImageClass()
Get the class object to use for JB2Image.

Returns:
The new instance of the JB2Image class.

setJB2ShapeClass

public void setJB2ShapeClass(java.lang.Class c)
Set the class object to use for JB2Shape.

Parameters:
c - the class object.

getJB2ShapeClass

public java.lang.Class getJB2ShapeClass()
Get the class object to use for JB2Shape.

Returns:
The new instance of the JB2Shape class.

setPaletteClass

public void setPaletteClass(java.lang.Class c)
Set the class object to use for Palette.

Parameters:
c - the class object.

getPaletteClass

public java.lang.Class getPaletteClass()
Get the class object to use for Palette.

Returns:
The new instance of the Palette class.

setZPCodecClass

public void setZPCodecClass(java.lang.Class c)
Set the class object to use for ZPCodec.

Parameters:
c - the class object.

getZPCodecClass

public java.lang.Class getZPCodecClass()
Get the class object to use for ZPCodec.

Returns:
The new instance of the ZPCodec class.

createBookmark

public Codec createBookmark()
Create the an instance of the Bookmark class without loading the class until runtime.

Returns:
The new instance of the Bookmark class.

createDjVuAnno

public Codec createDjVuAnno()
Create the an instance of the DjVuAnno class without loading the class until runtime.

Returns:
The new instance of the DjVuAnno class.

createDjVuText

public Codec createDjVuText()
Create the an instance of the DjVuText class without loading the class until runtime.

Returns:
The new instance of the DjVuText class.