java.lang.Object | |
↳ | com.pdftron.sdf.DictIterator |
Known Direct Subclasses |
DictIterator is used to traverse key/value pairs in a dictionary.
For example a DictIterator can be used to print out all the entries
in a given Obj dictionary as follows:
DictIterator itr = dict.getDictIterator();
while (itr.hasNext()) {
Obj key = itr.key();
cout << key.getName() << endl;
Obj value = itr.value();
// ...
itr.next()
}
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | __GetHandle() | ||||||||||
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
boolean |
hasNext()
Checks if DictIterator can advance to the next item.
| ||||||||||
Obj |
key()
Get the key of the current dictionary entry
| ||||||||||
void |
next()
Advances the iterator to the next element of the collection.
| ||||||||||
Obj |
value()
Get the value of the current dictionary entry
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
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 |
---|
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 |
---|
Checks if DictIterator can advance to the next item.
PDFNetException |
---|
Get the key of the current dictionary entry
PDFNetException |
---|
Advances the iterator to the next element of the collection.
PDFNetException |
---|
Get the value of the current dictionary entry
PDFNetException |
---|