|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.serializer.EmptySerializer
org.apache.xalan.xsltc.runtime.StringValueHandler
Field Summary |
Fields inherited from interface org.apache.xml.serializer.ExtendedContentHandler |
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS |
Constructor Summary | |
StringValueHandler()
|
Method Summary | |
void |
characters(char[] ch,
int off,
int len)
Receive notification of character data. |
void |
characters(String characters)
This method is used to notify of a character event, but passing the data as a character String rather than the standard character array. |
void |
endElement(String qname)
This method is used to notify that an element has ended. |
String |
getValue()
|
String |
getValueOfPI()
The value of a PI must not contain the substring "? |
boolean |
setEscaping(boolean bool)
Turns special character escaping on/off. |
void |
startElement(String qname)
This method is used to notify of the start of an element |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringValueHandler()
Method Detail |
public void characters(char[] ch, int off, int len) throws SAXException
ContentHandler
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
char
value. There are two important cases where this
happens, because characters can't be represented in just sixteen bits.
In one case, characters are represented in a Surrogate Pair,
using two special Unicode values. Such characters are in the so-called
"Astral Planes", with a code point above U+FFFF. A second case involves
composite characters, such as a base character combining with one or
more accent characters.
Your code should not assume that algorithms using
char
-at-a-time idioms will be working in character
units; in some cases they will split characters. This is relevant
wherever XML permits arbitrary characters, such as attribute values,
processing instruction data, and comments as well as in data reported
from this method. It's also generally relevant whenever Java code
manipulates internationalized text; the issue isn't unique to XML.
Note that some parsers will report whitespace in element
content using the ignorableWhitespace
method rather than this one (validating parsers must
do so).
characters
in interface ContentHandler
characters
in class EmptySerializer
SAXException
ContentHandler.characters(char[], int, int)
public String getValue()
public void characters(String characters) throws SAXException
ExtendedContentHandler
characters
in interface ExtendedContentHandler
characters
in class EmptySerializer
SAXException
ExtendedContentHandler.characters(java.lang.String)
public void startElement(String qname) throws SAXException
ExtendedContentHandler
startElement
in interface ExtendedContentHandler
startElement
in class EmptySerializer
SAXException
ExtendedContentHandler.startElement(java.lang.String)
public void endElement(String qname) throws SAXException
ExtendedContentHandler
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.
endElement
in interface ExtendedContentHandler
endElement
in class EmptySerializer
SAXException
ExtendedContentHandler.endElement(java.lang.String)
public boolean setEscaping(boolean bool)
SerializationHandler
setEscaping
in interface SerializationHandler
setEscaping
in class EmptySerializer
SerializationHandler.setEscaping(boolean)
public String getValueOfPI()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |