|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lizardtech.djvu.DjVuObject
public class DjVuObject
This is a basic implimentation of the DjVuInterface. Children should have a static method for creating an instance of the class using the referenced object to initialize DjVuObjects storage.
Field Summary | |
---|---|
static boolean |
hasReferences
This flag indicates if references are available. |
Constructor Summary | |
---|---|
DjVuObject()
|
Method Summary | |
---|---|
static void |
checkLockTime(long lockTime,
long maxTime)
|
static DjVuInterface |
create(DjVuOptions options,
java.lang.Class bestClass,
java.lang.Class defaultClass)
Creates the desired class. |
static DjVuInterface |
create(DjVuOptions options,
java.lang.Class bestClass,
java.lang.String className)
Creates the desired class. |
static java.lang.Object |
createSoftReference(java.lang.Object value,
java.lang.Object defaultValue)
Create a new SoftReference, if supported. |
static java.lang.Object |
createWeakReference(java.lang.Object value,
java.lang.Object defaultValue)
Create a new WeakReference, if supported. |
DjVuOptions |
getDjVuOptions()
Query the DjVuOptions used by this object. |
static java.lang.Object |
getFromReference(java.lang.Object value)
Retrieve the value from a reference. |
static java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object o,
java.lang.Object[] args)
This is a wrapper for method.invoke that catches and reports exceptions. |
void |
setDjVuOptions(DjVuOptions options)
Set the DjVuOptions to be used by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean hasReferences
Constructor Detail |
---|
public DjVuObject()
Method Detail |
---|
public void setDjVuOptions(DjVuOptions options)
setDjVuOptions
in interface DjVuInterface
options
- DjVuOptions to use.public DjVuOptions getDjVuOptions()
getDjVuOptions
in interface DjVuInterface
public static java.lang.Object getFromReference(java.lang.Object value)
value
- The reference to query.
public static DjVuInterface create(DjVuOptions options, java.lang.Class bestClass, java.lang.String className)
options
- the DjVuOptions instance the new object should use.bestClass
- The class we wish to create.className
- The name of the class to create as default.
public static DjVuInterface create(DjVuOptions options, java.lang.Class bestClass, java.lang.Class defaultClass)
options
- the DjVuOptions instance the new object should use.bestClass
- The class we wish to create.defaultClass
- The class to create as default.
public static java.lang.Object createSoftReference(java.lang.Object value, java.lang.Object defaultValue)
value
- The value to wrap in a soft reference.defaultValue
- The value to return if soft references are not
supported.
public static java.lang.Object createWeakReference(java.lang.Object value, java.lang.Object defaultValue)
value
- The value to wrap in a weak reference.defaultValue
- The value to return if weak references are not
supported.
public static java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object o, java.lang.Object[] args)
method
- class method to invokeo
- the object to invoke the method onargs
- the arguments to send to the method
public static void checkLockTime(long lockTime, long maxTime)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |