Summary: Ctors | Methods | Inherited Methods | [Expand All]
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
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## 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.

##### Throws

PDFNetException |

#### public Obj createArray ()

Creates a new array in ObjSet

##### Returns

- the created array as Obj

##### Throws

PDFNetException |

#### 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

##### Throws

PDFNetException |

#### public Obj createDict ()

Creates a new Dictionary object in ObjSet

##### Returns

- the created Dictionary object as Obj

##### Throws

PDFNetException |

#### 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

##### Throws

PDFNetException |

#### 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

##### Throws

PDFNetException |

#### public Obj createNull ()

Creates a null object in ObjSet

##### Returns

- the created null object as Obj

##### Throws

PDFNetException |

#### public Obj createNumber (double value)

Creates a Number object in ObSet

##### Parameters

value | of the Number object

##### Returns

- the created null object as Obj

##### Throws

PDFNetException |

#### public Obj createString (String value)

Creates a string object in ObjSet

##### Parameters

value | of the string object

##### Returns

- the created string object as Obj

##### Throws

PDFNetException |

#### 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.