public class ContentExtractor extends NativeObject implements java.lang.Iterable<ContentElement>
| Constructor and Description |
|---|
ContentExtractor(Content content)
Create a new content extractor
|
| Modifier and Type | Method and Description |
|---|---|
static ContentExtractor |
createDynamicObject(long handle) |
UngroupingSelection |
getUngrouping()
Configures the extractor's behavior regarding the selection of groups to be un-grouped.
|
java.util.Iterator<ContentElement> |
iterator() |
void |
setUngrouping(UngroupingSelection value)
Configures the extractor's behavior regarding the selection of groups to be un-grouped.
|
equals, hashCodepublic ContentExtractor(Content content) throws java.io.IOException, CorruptException
content - the content object of a page or groupjava.io.IOException - Error reading from the documentCorruptException - The document is corruptjava.lang.IllegalArgumentException - if the content argument is nulljava.lang.IllegalArgumentException - if the content object has already been closedjava.lang.IllegalArgumentException - if the document associated with the content has already been closedjava.lang.IllegalArgumentException - if the page/group associated with the content has already been closedjava.lang.IllegalArgumentException - if the content argument's document is an output documentpublic static ContentExtractor createDynamicObject(long handle)
public UngroupingSelection getUngrouping()
UngroupingSelection.NONE.java.lang.IllegalStateException - the object has already been closedpublic void setUngrouping(UngroupingSelection value)
UngroupingSelection.NONE.java.lang.IllegalStateException - the object has already been closedjava.lang.IllegalArgumentException - if value is nullpublic java.util.Iterator<ContentElement> iterator()
iterator in interface java.lang.Iterable<ContentElement>