pdftron.SDF
Class ObjSet

java.lang.Object
  extended by pdftron.SDF.ObjSet

public class ObjSet
extends java.lang.Object

ObjSet is a lightweight container that can hold a collection of SDF objects.


Constructor Summary
ObjSet()
          Instantiates a new obj set.
 
Method Summary
 Obj createArray()
          Creates a new array in ObjSet
 Obj createBool(boolean value)
          Creates a new boolean object in ObjSet
 Obj createDict()
          Creates a new Dictionary object in ObjSet
 Obj createName(java.lang.String name)
          Creates a new Name object in ObjSet
 Obj createNull()
          Creates a null object in ObjSet
 Obj createNumber(double value)
          Creates a Number object in ObSet
 Obj createString(java.lang.String value)
          Creates a string object in ObjSet
 void destroy()
          Frees the native memory of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjSet

public ObjSet()
Instantiates a new obj set.

Method Detail

destroy

public void destroy()
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.


createName

public Obj createName(java.lang.String name)
               throws PDFNetException
Creates a new Name object in ObjSet

Parameters:
name - string value of the Name object
Returns:
the created Name object as Obj
Throws:
PDFNetException

createArray

public Obj createArray()
                throws PDFNetException
Creates a new array in ObjSet

Returns:
the created array as Obj
Throws:
PDFNetException

createBool

public Obj createBool(boolean value)
               throws PDFNetException
Creates a new boolean object in ObjSet

Parameters:
value - used to initialize boolean object
Returns:
the created boolean object as Obj
Throws:
PDFNetException

createDict

public Obj createDict()
               throws PDFNetException
Creates a new Dictionary object in ObjSet

Returns:
the created Dictionary object as Obj
Throws:
PDFNetException

createNull

public Obj createNull()
               throws PDFNetException
Creates a null object in ObjSet

Returns:
the created null object as Obj
Throws:
PDFNetException

createNumber

public Obj createNumber(double value)
                 throws PDFNetException
Creates a Number object in ObSet

Parameters:
value - of the Number object
Returns:
the created null object as Obj
Throws:
PDFNetException

createString

public Obj createString(java.lang.String value)
                 throws PDFNetException
Creates a string object in ObjSet

Parameters:
value - of the string object
Returns:
the created string object as Obj
Throws:
PDFNetException


© 2002-2011 PDFTron Systems Inc.