|
Xerces 3.1.1 API: Class HTMLSerializer
|
Field Summary | |
static java.lang.String |
Constructor Summary | |
|
|
protected |
|
|
|
|
|
|
Method Summary | |
void |
int start,
int length)
|
protected void |
|
void |
|
void |
java.lang.String localName,
java.lang.String rawName)
|
protected java.lang.String |
|
protected java.lang.String |
|
protected void |
|
void |
|
protected void |
|
void |
|
void |
java.lang.String localName,
java.lang.String rawName,
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static java.lang.String XHTMLNamespace
Constructor Detail |
protected HTMLSerializer(boolean xhtml,
#init
first.xhtml
- True if XHTML serializingpublic HTMLSerializer()
public HTMLSerializer(java.io.Writer writer,
writer
- The writer to useformat
- The output format to use, null for the defaultpublic HTMLSerializer(java.io.OutputStream output,
output
- The output stream to useformat
- The output format to use, null for the defaultMethod Detail |
format
- The output format to usepublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName,
The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement event.
This event allows up to three name components for each element:
Any or all of these may be provided, depending on the properties:
Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): #IMPLIED attributes will be omitted. The attribute list will contain attributes used for Namespace declarations property is true (it is false by default, and support for a
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName
- The qualified name (with prefix), or the
empty string if qualified names are not available.atts
- The attributes attached to the element. If
there are no attributes, it shall be an empty
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)
The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding event (even when the element is empty).
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName
- The qualified XML 1.0 name (with prefix), or the
wrapping another exception.public void characters(char[] chars, int start, 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; 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.
Note that some parsers will report whitespace in element method rather than this one (validating parsers must do so).
public void startElement(java.lang.String tagName,
The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement() event.
If the element name has a namespace prefix, the prefix will still be attached. Note that the attribute list provided will contain only attributes with explicit values (specified or
public void endElement(java.lang.String tagName)
The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).
If the element name has a namespace prefix, the prefix will
protected void startDocument(java.lang.String rootTagName)
will serialize the document type declaration, and will serialize all pre-root comments and PIs that were accumulated in the document this is not the first root element of the document.
protected void serializeElement(Element elem)
elem
- The element to serializeprotected void characters(java.lang.String text)
text
- The text to printunescaped
- True is should print unescapedprotected java.lang.String getEntityRef(char ch)
ch
- Character valueprotected java.lang.String escapeURI(java.lang.String uri)
|
Xerces 3.1.1 | ||||||||
FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |