public class ElementContentElementParser extends DefaultElementParser
Constructor and Description |
---|
ElementContentElementParser() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chars,
int offset,
int length)
Do nothing by default.
|
String |
getElementContent() |
void |
startElement(Attributes attributes)
Do nothing by default.
|
endElement, getInstance
public void startElement(Attributes attributes)
DefaultElementParser
startElement
in interface ElementParser
startElement
in class DefaultElementParser
attributes
- The element's attributespublic void characters(char[] chars, int offset, int length)
DefaultElementParser
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
characters
in class DefaultElementParser
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 String getElementContent()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.