Modifier and Type | Field and Description |
---|---|
private boolean | |
private XMLStreamWriter |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public void | characters(char[]
The characters. ch, int The start position in the character array. start, int The number of characters to use from the
character array. length)Overrides com. Implements org. Receive notification of character data inside an element. |
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()
Overrides com. Implements org. Receive notification of the end of the 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. uri, 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. qName)Overrides com. Implements org. Receive notification of the end of an element. |
public XMLStreamWriter | |
public void | ignorableWhitespace(char[]
The whitespace characters. ch, int The start position in the character array. start, int The number of characters to use from the
character array. length)Overrides org. Implements org. Receive notification of ignorable whitespace in element content. |
public void | processingInstruction(String
The processing instruction target. target, String The processing instruction data, or null if
none is supplied. data)Overrides org. Implements org. Receive notification of a processing instruction. |
public void | |
public void | startDocument()
Overrides com. Implements org. Receive notification of the beginning of the 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. uri, 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. qName, Attributes The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object. attributes)Overrides com. Implements org. Receive notification of the start of an element. |
pack-priv void |
needToCallStartDocument | back to summary |
---|---|
private boolean needToCallStartDocument |
writer | back to summary |
---|---|
private XMLStreamWriter writer |
SAX2StAXStreamWriter | back to summary |
---|---|
public SAX2StAXStreamWriter() |
SAX2StAXStreamWriter | back to summary |
---|---|
public SAX2StAXStreamWriter(XMLStreamWriter writer) |
characters | back to summary |
---|---|
public void characters(char[] ch, int start, int length) throws SAXException Overrides com. Implements org. Doc from org. Receive notification of character data inside an element. By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
|
comment | back to summary |
---|---|
public void comment(char[] ch, int start, int length) throws SAXException Overrides com. Implements org. Doc from 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). Comments in the DTD must be properly nested inside start/endDTD and start/endEntity events (if used).
|
endCDATA | back to summary |
---|---|
public void endCDATA() throws SAXException Overrides com. Implements org. Doc from org. Report the end of a CDATA section.
|
endDocument | back to summary |
---|---|
public void endDocument() throws SAXException Overrides com. Implements org. Doc from org. Receive notification of the end of the document. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).
|
endElement | back to summary |
---|---|
public void endElement(String uri, String localName, String qName) throws SAXException Overrides com. Implements org. Doc from org. Receive notification of the end of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
|
getStreamWriter | back to summary |
---|---|
public XMLStreamWriter getStreamWriter() |
ignorableWhitespace | back to summary |
---|---|
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of ignorable whitespace in element content. By default, do nothing. Application writers may override this method to take specific actions for each chunk of ignorable whitespace (such as adding data to a node or buffer, or printing it to a file).
|
processingInstruction | back to summary |
---|---|
public void processingInstruction(String target, String data) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a processing instruction. By default, do nothing. Application writers may override this method in a subclass to take specific actions for each processing instruction, such as setting status variables or invoking other methods.
|
setStreamWriter | back to summary |
---|---|
public void setStreamWriter(XMLStreamWriter writer) |
startDocument | back to summary |
---|---|
public void startDocument() throws SAXException Overrides com. Implements org. Doc from org. Receive notification of the beginning of the document. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).
|
startElement | back to summary |
---|---|
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Overrides com. Implements org. Doc from org. Receive notification of the start of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
|
writeStartDocument | back to summary |
---|---|
pack-priv void writeStartDocument() throws SAXException Overrides com. |