public class XmlStructuredHandler extends StructuredHandler implements AutoCloseable
Represents a handler for extracting a structured text from the document as XML.
Constructor and Description |
---|
XmlStructuredHandler()
Initializes a new instance of the
XmlStructuredHandler class. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protected void |
dispose(boolean isDisposing)
Releases the unmanaged resources used by the extractor.
|
boolean |
isDisposed()
Gets a value indicating whether the extractor is disposed.
|
protected void |
onEndElement()
Starts to process the closing of the element.
|
protected void |
onStartElement(StructuredElementProperties properties)
Starts to process the element.
|
protected void |
onText(TextProperties properties,
String value)
Starts to process the element's text.
|
InputStream |
openXmlStream()
Creates a xml stream for the document.
|
endElement, get_Item, getDepth, onLineBreak, onStartDocument, onStartGroup, onStartHyperlink, onStartingElement, onStartList, onStartListItem, onStartPage, onStartParagraph, onStartSection, onStartSlide, onStartTable, onStartTableCell, onStartTableRow, startElement, text
public XmlStructuredHandler()
Initializes a new instance of the XmlStructuredHandler
class.
public boolean isDisposed()
Gets a value indicating whether the extractor is disposed.
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void close()
close
in interface AutoCloseable
public InputStream openXmlStream()
Creates a xml stream for the document.
protected void dispose(boolean isDisposing)
Releases the unmanaged resources used by the extractor.
isDisposing
- A boolean true if invoked from Dispose; otherwise, false.protected void onStartElement(StructuredElementProperties properties)
Starts to process the element.
onStartElement
in class StructuredHandler
properties
- Properties of the element.protected void onEndElement()
Starts to process the closing of the element.
onEndElement
in class StructuredHandler
protected void onText(TextProperties properties, String value)
Starts to process the element's text.
onText
in class StructuredHandler
properties
- Properties of the element's text.value
- A text of the element.Copyright © 2018. All rights reserved.