Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public void | addAttribute(String
the URI of the attribute uri, String the local name of the attribute localName, String the qualified name of the attribute rawName, String the type of the attribute (probably CDATA) type, String the value of the attribute value, boolean true if this attribute is coming from an xsl:attriute element XSLAttribute)Overrides com. Implements com. Adds the given attribute to the set of collected attributes , but only if there is a currently open element. |
public void | addAttribute(String
the attribute's qualified name name, String the value of the attribute value)Overrides com. Implements com. From XSLTC |
public void | addUniqueAttribute(String
the fully qualified attribute name. qName, String the attribute value value, int a bitwise flag flags)Implements com. Add a unique attribute |
public void | cdata(char[]
The characters from the XML document. ch, int The start position in the array. start, int The number of characters to read from the array. length)Overrides com. Receive notification of cdata. |
public void | characters(char[]
The characters from the XML document. ch, int The start position in the array. start, int The number of characters to read from the array. length)Overrides com. Implements org. Receive notification of character data. |
public void | characters(String
The string of characters to process. characters)Overrides com. Implements com. From XSLTC |
public void | charactersRaw(char[]
The characters from the XML document. ch, int The start position in the array. start, int The number of characters to read from the array. length)Overrides com. If available, when the disable-output-escaping attribute is used, output raw text without escaping. |
public void | comment(String
The comment data. data)Overrides com. Implements com. Called when a Comment is to be constructed. |
public void | comment(char[]
An array holding the characters in the comment. ch, int The starting position in the array. start, int The number of characters to use from the array. length)Overrides com. Implements org. Report an XML comment anywhere in the document. |
public void | endCDATA()
Overrides com. Implements org. Report the end of a CDATA section. |
public void | endDocument()
Implements org. Receive notification of the end of a document. |
public void | endElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. namespaceURI, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. localName, String The qualified name (with prefix), or the
empty string if qualified names are not available. name)Overrides com. Implements org. Receive notification of the end of an element. |
public void | endElement(String
The element type name elemName)Overrides com. Implements com. Receive notification of the end of an element. |
public void | entityReference(String
non-null reference to the name of the entity. name)Overrides com. Implements com. Receive notivication of a entityReference. |
public void | flushPending()
Overrides com. Implements com. This method flushes any pending events, which can be startDocument() closing the opening tag of an element, or closing an open CDATA section. |
public void | ignorableWhitespace(char[]
The characters from the XML document. ch, int The start position in the array. start, int The number of characters to read from the array. length)Overrides com. Implements org. Receive notification of ignorable whitespace in element content. |
public void | namespaceAfterStartElement(final String
the URI of the namespace prefix, final String the prefix associated with the given URI. uri)Overrides com. Implements com. This method is used when a prefix/uri namespace mapping is indicated after the element was started with a startElement() and before and endElement(). |
public void | processingInstruction(String
The processing instruction target. target, String The processing instruction data, or null if
none was supplied. data)Implements org. Receive notification of a processing instruction. |
protected void | startDocumentInternal()
Overrides com. Receive notification of the beginning of a document. |
public void | startElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. namespaceURI, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. localName, String The qualified name (with prefix), or the
empty string if qualified names are not available. name, Attributes The attributes attached to the element, if any. atts)Overrides com. Implements org. Receive notification of the beginning of an element. |
public void | startElement(String
The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed. elementNamespaceURI, String The local name (without prefix), or the
empty string if Namespace processing is not being
performed. elementLocalName, String The element type name. elementName)Overrides com. Implements com. From XSLTC |
public boolean | startPrefixMapping(String
The Namespace prefix being declared. prefix, String The Namespace URI the prefix is mapped to. uri, boolean true if any open tags need to be closed first, this
will impact which element the mapping applies to (open parent, or its up
comming child) shouldFlush)Overrides com. Implements com. Handle a prefix/uri mapping, which is associated with a startElement() that is soon to follow. |
public void | startPrefixMapping(String
The Namespace prefix being declared. prefix, String The Namespace URI the prefix is mapped to. uri)Overrides com. Implements org. Begin the scope of a prefix-URI Namespace mapping just before another element is about to start. |
pack-priv void | writeNormalizedChars(final char[]
The characters from the XML document. ch, final int The start position in the array. start, final int The number of characters to read from the array. length, final boolean true if the operating systems
end-of-line separator should be output rather than a new-line character. useLineSep)Normalize the characters, but don't escape. |
ToTextStream | back to summary |
---|---|
public ToTextStream() Default constructor. |
ToTextStream | back to summary |
---|---|
public ToTextStream(ErrorListener l) |
addAttribute | back to summary |
---|---|
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) Overrides com. Implements com. Doc from com. Adds the given attribute to the set of collected attributes , but only if there is a currently open element. An element is currently open if a startElement() notification has occured but the start of the element has not yet been written to the output. In the stream case this means that we have not yet been forced to close the elements opening tag by another notification, such as a character notification.
|
addAttribute | back to summary |
---|---|
public void addAttribute(String name, String value) Overrides com. Implements com. From XSLTC
|
addUniqueAttribute | back to summary |
---|---|
public void addUniqueAttribute(String qName, String value, int flags) throws SAXException Implements com. Add a unique attribute
|
cdata | back to summary |
---|---|
public void cdata(char[] ch, int start, int length) throws SAXException Overrides com. Receive notification of cdata. 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 using the ignorableWhitespace() method rather than this one (validating parsers must do so).
|
characters | back to summary |
---|---|
public void characters(char[] ch, int start, int length) throws SAXException Overrides com. Implements 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. Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).
|
characters | back to summary |
---|---|
public void characters(String characters) throws SAXException Overrides com. Implements com. From XSLTC
|
charactersRaw | back to summary |
---|---|
public void charactersRaw(char[] ch, int start, int length) throws SAXException Overrides com. If available, when the disable-output-escaping attribute is used, output raw text without escaping.
|
comment | back to summary |
---|---|
public void comment(String data) throws SAXException Overrides com. Implements com. Called when a Comment is to be constructed. Note that Xalan will normally invoke the other version of this method. %REVIEW% In fact, is this one ever needed, or was it a mistake?
|
comment | back to summary |
---|---|
public void comment(char[] ch, int start, int length) throws SAXException Overrides com. Implements org. Report an XML comment anywhere in the document. This callback will be used for comments inside or outside the document element, including comments in the external DTD subset (if read).
|
endCDATA | back to summary |
---|---|
public void endCDATA() throws SAXException Overrides com. Implements org. Doc from com. Report the end of a CDATA section.
|
endDocument | back to summary |
---|---|
public void endDocument() throws SAXException Implements org. Receive notification of the end of a document. The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.
|
endElement | back to summary |
---|---|
public void endElement(String namespaceURI, String localName, String name) throws SAXException Overrides com. Implements org. Receive notification of the end of an element. 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 still be attached to the name.
|
endElement | back to summary |
---|---|
public void endElement(String elemName) throws SAXException Overrides com. Implements com. Doc from com. Receive notification of the end of an element.
|
entityReference | back to summary |
---|---|
public void entityReference(String name) throws SAXException Overrides com. Implements com. Receive notivication of a entityReference.
|
flushPending | back to summary |
---|---|
public void flushPending() throws SAXException Overrides com. Implements com. Doc from com. This method flushes any pending events, which can be startDocument() closing the opening tag of an element, or closing an open CDATA section. |
ignorableWhitespace | back to summary |
---|---|
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException Overrides com. Implements org. Receive notification of ignorable whitespace in element content. Validating Parsers must use this method to report each chunk of ignorable whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models. SAX parsers may return all contiguous whitespace 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.
|
namespaceAfterStartElement | back to summary |
---|---|
public void namespaceAfterStartElement(final String prefix, final String uri) throws SAXException Overrides com. Implements com. Doc from com. This method is used when a prefix/uri namespace mapping is indicated after the element was started with a startElement() and before and endElement(). startPrefixMapping(prefix,uri) would be used before the startElement() call. |
processingInstruction | back to summary |
---|---|
public void processingInstruction(String target, String data) throws SAXException Implements org. Receive notification of a processing instruction. The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element. A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.
|
startDocumentInternal | back to summary |
---|---|
protected void startDocumentInternal() throws SAXException Overrides com. Receive notification of the beginning of a document. The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).
|
startElement | back to summary |
---|---|
public void startElement(String namespaceURI, String localName, String name, Attributes atts) throws SAXException Overrides com. Implements org. Receive notification of the beginning of an element. 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 defaulted): #IMPLIED attributes will be omitted.
|
startElement | back to summary |
---|---|
public void startElement(String elementNamespaceURI, String elementLocalName, String elementName) throws SAXException Overrides com. Implements com. From XSLTC
|
startPrefixMapping | back to summary |
---|---|
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws SAXException Overrides com. Implements com. Doc from com. Handle a prefix/uri mapping, which is associated with a startElement() that is soon to follow. Need to close any open start tag to make sure than any name space attributes due to this event are associated wih the up comming element, not the current one.
|
startPrefixMapping | back to summary |
---|---|
public void startPrefixMapping(String prefix, String uri) throws SAXException Overrides com. Implements org. Doc from com. Begin the scope of a prefix-URI Namespace mapping just before another element is about to start. This call will close any open tags so that the prefix mapping will not apply to the current element, but the up comming child.
|
writeNormalizedChars | back to summary |
---|---|
pack-priv void writeNormalizedChars(final char[] ch, final int start, final int length, final boolean useLineSep) throws IOException, SAXException Normalize the characters, but don't escape. Different from SerializerToXML#writeNormalizedChars because it does not attempt to do XML escaping at all.
|