intarsys PDF library API

de.intarsys.pdf.cos
Class COSTools

java.lang.Object
  extended by de.intarsys.pdf.cos.COSTools

public class COSTools
extends Object

Some tools to ease life with COS.


Method Summary
static COSObject createObject(Object javaObject)
          Try the best in marshalling java objects directly to COSObject.
static List getVersions(COSDocument doc)
          A collection of ILocator instances, representing the versions created when writing incrementally.
static COSDictionary toDictionary(COSObject object)
          Tries to force a dictionary out of the COSObject.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toDictionary

public static COSDictionary toDictionary(COSObject object)
Tries to force a dictionary out of the COSObject.

Parameters:
object - The object to be cast to a COSDictionary
Returns:
COSDictionary or null

createObject

public static COSObject createObject(Object javaObject)
Try the best in marshalling java objects directly to COSObject. Collections will be marshalled recursively.

Parameters:
javaObject - the java object to be marshalled
Returns:
The resulting COSObject

getVersions

public static List getVersions(COSDocument doc)
                        throws IOException,
                               COSLoadException
A collection of ILocator instances, representing the versions created when writing incrementally.

Parameters:
doc - The original document.
Returns:
A collection of ILocator instances, representing the versions created when writing incrementally.
Throws:
IOException
COSLoadException

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.