| Modifier and Type | Field and Description |
|---|---|
| private StringBuilder | |
| private int | |
| private String | |
| private static final String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| _buffer | back to summary |
|---|---|
| private StringBuilder _buffer | |
| _nestedLevel | back to summary |
|---|---|
| private int _nestedLevel | |
| _str | back to summary |
|---|---|
| private String _str | |
| EMPTY_STR | back to summary |
|---|---|
| private static final String EMPTY_STR | |
| m_escaping | back to summary |
|---|---|
| private boolean m_escaping | |
| StringValueHandler | back to summary |
|---|---|
| public StringValueHandler() | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int off, int len) throws SAXException Overrides com. Implements org. Doc from org. Receive notification of character data. 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; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information. The application must not attempt to read from the array outside of the specified range. Individual characters may consist of more than one Java
Your code should not assume that algorithms using
Note that some parsers will report whitespace in element
content using the
| |
| characters | back to summary |
|---|---|
| public void characters(String characters) throws SAXException Overrides com. Implements com. Doc from com. This method is used to notify of a character event, but passing the data as a character String rather than the standard character array. | |
| endElement | back to summary |
|---|---|
| public void endElement(String qname) throws SAXException Overrides com. Implements com. Doc from com. This method is used to notify that an element has ended. Unlike the standard SAX method endElement(namespaceURI,localName,qName)only the last parameter is passed. If needed the serializer can derive the localName from the qualified name and derive the namespaceURI from its implementation. | |
| getValue | back to summary |
|---|---|
| public String getValue() | |
| getValueOfPI | back to summary |
|---|---|
| public String getValueOfPI() The value of a PI must not contain the substring "?>". Should that substring be present, replace it by "? >". | |
| setEscaping | back to summary |
|---|---|
| public boolean setEscaping(boolean bool) Overrides com. Implements com. Doc from com. Turns special character escaping on/off. Note that characters will never, even if this option is set to 'true', be escaped within CDATA sections in output XML documents. | |
| startElement | back to summary |
|---|---|
| public void startElement(String qname) throws SAXException Overrides com. Implements com. Doc from com. This method is used to notify of the start of an element | |