| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ContextAwareImpl | |
| pack-priv final ElementPath | |
| pack-priv Locator | |
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private SAXParser | |
| public void | characters(char[]
The characters. ch, int The start position in the character array. start, int The number of characters to use from the
character array. length)Overrides org. Implements org. |
| public void | endElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. namespaceURI, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. localName, String The qualified name (with prefix), or the
empty string if qualified names are not available. qName)Overrides org. Implements org. |
| public void | error(SAXParseException
The error information encoded as an exception. spe)Overrides org. Implements org. |
| public void | fatalError(SAXParseException
The error information encoded as an exception. spe)Overrides org. Implements org. |
| public Context | |
| pack-priv SaxEvent | |
| public Locator | |
| public List | |
| pack-priv String | |
| private void | |
| pack-priv boolean | |
| public final void | |
| public void | |
| public void | |
| public void | setDocumentLocator(Locator
A locator for all SAX document events. l)Overrides org. Implements org. |
| protected boolean | |
| public void | startDocument()
Overrides org. Implements org. |
| public void | startElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. namespaceURI, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. localName, String The qualified name (with prefix), or the
empty string if qualified names are not available. qName, Attributes The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object. atts)Overrides org. Implements org. |
| public void | warning(SAXParseException
The warning information encoded as an exception. spe)Overrides org. Implements org. |
| contextAwareImpl | back to summary |
|---|---|
| pack-priv final ContextAwareImpl contextAwareImpl | |
| elementPath | back to summary |
|---|---|
| pack-priv final ElementPath elementPath | |
| locator | back to summary |
|---|---|
| pack-priv Locator locator | |
| saxEventList | back to summary |
|---|---|
| pack-priv List<SaxEvent> saxEventList | |
| SaxEventRecorder | back to summary |
|---|---|
| public SaxEventRecorder(Context context) | |
| SaxEventRecorder | back to summary |
|---|---|
| public SaxEventRecorder(Context context, ElementPath elementPath) | |
| addError | back to summary |
|---|---|
| public void addError(String msg) Implements ch. | |
| addError | back to summary |
|---|---|
| public void addError(String msg, Throwable ex) Implements ch. | |
| addInfo | back to summary |
|---|---|
| public void addInfo(String msg) Implements ch. | |
| addInfo | back to summary |
|---|---|
| public void addInfo(String msg, Throwable ex) Implements ch. | |
| addStatus | back to summary |
|---|---|
| public void addStatus(Status status) Implements ch. | |
| addWarn | back to summary |
|---|---|
| public void addWarn(String msg) Implements ch. | |
| addWarn | back to summary |
|---|---|
| public void addWarn(String msg, Throwable ex) Implements ch. | |
| buildSaxParser | back to summary |
|---|---|
| private SAXParser buildSaxParser() throws JoranException | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) Overrides org. Implements org. Doc from org. Receive notification of character data inside an element. By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
| |
| endElement | back to summary |
|---|---|
| public void endElement(String namespaceURI, String localName, String qName) Overrides org. Implements org. Doc from org. Receive notification of the end of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
| |
| error | back to summary |
|---|---|
| public void error(SAXParseException spe) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a recoverable parser error. The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(SAXParseException spe) throws SAXException Overrides org. Implements org. Doc from org. Report a fatal XML parsing error. The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
| |
| getContext | back to summary |
|---|---|
| public Context getContext() Implements ch. | |
| getLastEvent | back to summary |
|---|---|
| pack-priv SaxEvent getLastEvent() | |
| getLocator | back to summary |
|---|---|
| public Locator getLocator() | |
| getSaxEventList | back to summary |
|---|---|
| public List | |
| getTagName | back to summary |
|---|---|
| pack-priv String getTagName(String localName, String qName) | |
| handleError | back to summary |
|---|---|
| private void handleError(String errMsg, Throwable t) throws JoranException | |
| isSpaceOnly | back to summary |
|---|---|
| pack-priv boolean isSpaceOnly(String bodyStr) | |
| recordEvents | back to summary |
|---|---|
| public final void recordEvents(InputStream inputStream) throws JoranException | |
| recordEvents | back to summary |
|---|---|
| public void recordEvents(InputSource inputSource) throws JoranException | |
| setContext | back to summary |
|---|---|
| public void setContext(Context context) Implements ch. | |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator l) Overrides org. Implements org. Doc from org. Receive a Locator object for document events. By default, do nothing. Application writers may override this method in a subclass if they wish to store the locator for use with other document events.
| |
| shouldIgnoreForElementPath | back to summary |
|---|---|
| protected boolean shouldIgnoreForElementPath(String tagName) | |
| startDocument | back to summary |
|---|---|
| public void startDocument() Overrides org. Implements org. Doc from org. Receive notification of the beginning of the document. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file). | |
| startElement | back to summary |
|---|---|
| public void startElement(String namespaceURI, String localName, String qName, Attributes atts) Overrides org. Implements org. Doc from org. Receive notification of the start of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
| |
| warning | back to summary |
|---|---|
| public void warning(SAXParseException spe) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a parser warning. The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
| |