| java.lang.Object | |
| ↳ | com.pdftron.sdf.ObjSet |
ObjSet is a lightweight container that can hold a collection of SDF objects.
| 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
| |||||||||||
Instantiates a new obj set.
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.
| PDFNetException |
|---|
Creates a new boolean object in ObjSet
| value | used to initialize boolean object |
|---|
| PDFNetException |
|---|
Creates a new Dictionary object in ObjSet
| PDFNetException |
|---|
parses a json string to create either a Dictionary or an Array in ObjSet.
| value | json string to be parsed |
|---|
| PDFNetException |
|---|
Creates a new Name object in ObjSet
| name | string value of the Name object |
|---|
| PDFNetException |
|---|
Creates a Number object in ObSet
| value | of the Number object |
|---|
| PDFNetException |
|---|
Creates a string object in ObjSet
| value | of the string object |
|---|
| PDFNetException |
|---|
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.