public class

ObjSet

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pdftron.sdf.ObjSet

Class Overview

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

Summary

Public Constructors
ObjSet()
Instantiates a new obj set.
Public Methods
void close()
Frees the native memory of the object.
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 createFromJson(String value)
parses a json string to create either a Dictionary or an Array in ObjSet.
Obj createName(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(String value)
Creates a string object in ObjSet
void destroy()
Frees the native memory of the object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public ObjSet ()

Instantiates a new obj set.

Public Methods

public void close ()

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.

public Obj createArray ()

Creates a new array in ObjSet

Returns
  • the created array as Obj

public Obj createBool (boolean value)

Creates a new boolean object in ObjSet

Parameters
value used to initialize boolean object
Returns
  • the created boolean object as Obj

public Obj createDict ()

Creates a new Dictionary object in ObjSet

Returns
  • the created Dictionary object as Obj

public Obj createFromJson (String value)

parses a json string to create either a Dictionary or an Array in ObjSet.

Parameters
value json string to be parsed
Returns
  • the created object as Obj

public Obj createName (String name)

Creates a new Name object in ObjSet

Parameters
name string value of the Name object
Returns
  • the created Name object as Obj

public Obj createNull ()

Creates a null object in ObjSet

Returns
  • the created null object as Obj

public Obj createNumber (double value)

Creates a Number object in ObSet

Parameters
value of the Number object
Returns
  • the created null object as Obj

public Obj createString (String value)

Creates a string object in ObjSet

Parameters
value of the string object
Returns
  • the created string object as Obj

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.