XMLSerializer
| Modifier and Type | Field and Description |
|---|---|
| private final FinalArrayList | prefixMap
Stores newly declared prefix-URI mapping. |
| private final XMLSerializer | serializer
Events will be sent to this object. |
| private final StringBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | characters(char[] ch, int start, int length)
Overrides org. Implements org. Receive notification of character data inside an element. |
| private boolean | |
| public void | endElement(String namespaceURI, String localName, String qName)
Overrides org. Implements org. Receive notification of the end of an element. |
| private void | |
| private String | |
| public void | startDocument()
Overrides org. Implements org. Receive notification of the beginning of the document. |
| public void | startElement(String namespaceURI, String localName, String qName, Attributes atts)
Overrides org. Implements org. Receive notification of the start of an element. |
| public void | startPrefixMapping(String prefix, String uri)
Overrides org. Implements org. Receive notification of the start of a Namespace mapping. |
| prefixMap | back to summary |
|---|---|
| private final FinalArrayList<String> prefixMap Stores newly declared prefix-URI mapping. | |
| serializer | back to summary |
|---|---|
| private final XMLSerializer serializer Events will be sent to this object. | |
| text | back to summary |
|---|---|
| private final StringBuffer text | |
| ContentHandlerAdaptor | back to summary |
|---|---|
| pack-priv ContentHandlerAdaptor(XMLSerializer _serializer) | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) Overrides org. 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).
| |
| containsPrefixMapping | back to summary |
|---|---|
| private boolean containsPrefixMapping(String prefix, String uri) | |
| endElement | back to summary |
|---|---|
| public void endElement(String namespaceURI, String localName, String qName) throws SAXException Overrides org. 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).
| |
| flushText | back to summary |
|---|---|
| private void flushText() throws SAXException, IOException, XMLStreamException | |
| getPrefix | back to summary |
|---|---|
| private String getPrefix(String qname) | |
| startDocument | back to summary |
|---|---|
| public void startDocument() Overrides org. 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 namespaceURI, String localName, String qName, Attributes atts) throws SAXException Overrides org. 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).
| |
| startPrefixMapping | back to summary |
|---|---|
| public void startPrefixMapping(String prefix, String uri) Overrides org. Implements org. Doc from org. Receive notification of the start of a Namespace mapping. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each Namespace prefix scope (such as storing the prefix mapping).
| |