public class DefaultElementParser extends Object implements ElementParser
Constructor and Description |
---|
DefaultElementParser() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chars,
int offset,
int length)
Do nothing by default.
|
void |
endElement()
Do nothing by default.
|
static ElementParser |
getInstance() |
void |
startElement(Attributes attributes)
Do nothing by default.
|
public void startElement(Attributes attributes)
startElement
in interface ElementParser
attributes
- The element's attributespublic void endElement() throws ConfigurationException
endElement
in interface ElementParser
ConfigurationException
- A generic parsinf failurepublic void characters(char[] chars, int offset, int length)
The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks.
characters
in interface ElementParser
chars
- The characters from the XML document.offset
- The start position in the array.length
- The number of characters to read from the array.public static ElementParser getInstance()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.