Most ContentHandler callbacks are supported. Neither
ignorableWhitespace() nor skippedEntity() have been
implemented.
At this time, it is not possible to access notations and unparsed entity
references in a DTD from JDOM. Therefore, full DTDHandler
call-backs have not been implemented yet.
The ErrorHandler call-backs have not been implemented, since
these are supposed to be invoked when the document is parsed and at this
point the document exists in memory and is known to have no errors.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private XMLReader | Returns: XMLReader a SAX2 parser.This will create a SAX XMLReader capable of parsing a DTD and configure it so that the DTD parsing events are routed to the handlers registered onto this SAXOutputter. |
| protected XMLReader | |
| private static String | Returns: String the SAX 2.0 attribute type string.int the type of the JDOM attribute.Returns the SAX 2.0 attribute type string from the type of a JDOM Attribute. |
| private static void | |
| protected void | printCDATA(final SAXTarget
SAXTarget to use.the FormatStack fstack, final CDATA CDATA to write.This will handle printing of a |
| protected void | printComment(final SAXTarget
SAXTarget to use.the FormatStack fstack, final Comment Comment to write.This will handle printing of a |
| protected void | printContent(final SAXTarget
SAXTarget to use.the FormatStack fstack, final NamespaceStack the NamespaceStack nstack, final Walker Waker of Content to write.This will handle printing of a List of |
| protected void | printDocType(final SAXTarget
SAXTarget to use.the FormatStack fstack, final DocType DocType to write.This will handle printing of a |
| protected void | printDocument(final SAXTarget
SAXTarget to use.the FormatStack fstack, final NamespaceStack the NamespaceStack nstack, final Document Document to write.This will handle printing of a |
| protected void | printElement(final SAXTarget
SAXTarget to use.the FormatStack fstack, final NamespaceStack the NamespaceStack nstack, final Element Element to write.This will handle printing of an |
| protected void | printEntityRef(final SAXTarget
SAXTarget to use.the FormatStack fstack, final EntityRef EntotyRef to write.This will handle printing of an |
| protected void | printProcessingInstruction(final SAXTarget
SAXTarget to use.the FormatStack fstack, final ProcessingInstruction ProcessingInstruction to write.This will handle printing of a |
| protected void | printText(final SAXTarget
SAXTarget to use.the FormatStack fstack, final Text Text to write.This will handle printing of a |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | process(SAXTarget
SAXTarget to use.Format instance specifying output styleProcessingInstruction to output.Implements org. .
|
| public void | |
| public void | processAsDocument(SAXTarget
SAXTarget to use.Format instance specifying output styleList of nodes.Implements org. |
| public void | processAsDocument(SAXTarget
SAXTarget to use.Format instance specifying output styleElement to output.Implements org. encapsulated in start/end
Document SAX events, including its s, and
all contained (child) elements, etc.
|
| AbstractSAXOutputProcessor | back to summary |
|---|---|
| public AbstractSAXOutputProcessor() | |
| createDTDParser | back to summary |
|---|---|
| private XMLReader createDTDParser(SAXTarget out) throws SAXException This will create a SAX XMLReader capable of parsing a DTD and configure it so that the DTD parsing events are routed to the handlers registered onto this SAXOutputter.
| |
| createParser | back to summary |
|---|---|
| protected XMLReader createParser() throws Exception Creates a SAX XMLReader. | |
| getAttributeTypeName | back to summary |
|---|---|
| private static String getAttributeTypeName(AttributeType type) Returns the SAX 2.0 attribute type string from the type of a JDOM Attribute.
| |
| locate | back to summary |
|---|---|
| private static void locate(SAXTarget out) | |
| printCDATA | back to summary |
|---|---|
| protected void printCDATA(final SAXTarget out, final FormatStack fstack, final CDATA cdata) throws SAXException This will handle printing of a
| |
| printComment | back to summary |
|---|---|
| protected void printComment(final SAXTarget out, final FormatStack fstack, final Comment comment) throws SAXException This will handle printing of a
| |
| printContent | back to summary |
|---|---|
| protected void printContent(final SAXTarget out, final FormatStack fstack, final NamespaceStack nstack, final Walker walker) throws SAXException This will handle printing of a List of It relies on the appropriate Walker to get the formatting right.
| |
| printDocType | back to summary |
|---|---|
| protected void printDocType(final SAXTarget out, final FormatStack fstack, final DocType docType) throws SAXException This will handle printing of a
| |
| printDocument | back to summary |
|---|---|
| protected void printDocument(final SAXTarget out, final FormatStack fstack, final NamespaceStack nstack, final Document document) throws SAXException This will handle printing of a
| |
| printElement | back to summary |
|---|---|
| protected void printElement(final SAXTarget out, final FormatStack fstack, final NamespaceStack nstack, final Element element) throws SAXException This will handle printing of an This method arranges for outputting the Element infrastructure including Namespace Declarations and Attributes.
| |
| printEntityRef | back to summary |
|---|---|
| protected void printEntityRef(final SAXTarget out, final FormatStack fstack, final EntityRef entity) throws SAXException This will handle printing of an
| |
| printProcessingInstruction | back to summary |
|---|---|
| protected void printProcessingInstruction(final SAXTarget out, final FormatStack fstack, final ProcessingInstruction pi) throws SAXException This will handle printing of a
| |
| printText | back to summary |
|---|---|
| protected void printText(final SAXTarget out, final FormatStack fstack, final Text text) throws SAXException This will handle printing of a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Document doc) throws JDOMException Implements org. Doc from org. This will print the Warning using your own SAXTarget may cause the outputter's preferred character encoding to be ignored. If you use encodings other than UTF-8, we recommend using the method that takes an OutputStream instead.
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, DocType doctype) throws JDOMException Implements org. Doc from org. Print out the
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Element element) throws JDOMException Implements org. Doc from org. Print out an
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, List<? extends Content> list) throws JDOMException Implements org. Doc from org. This will handle printing out a list of nodes. This can be useful for printing the content of an element that contains HTML, like "<description>JDOM is <b>fun>!</description>". | |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, CDATA cdata) throws JDOMException Implements org. Doc from org. Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Text text) throws JDOMException Implements org. Doc from org. Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Comment comment) throws JDOMException Implements org. Doc from org. Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, ProcessingInstruction pi) throws JDOMException Implements org. Doc from org. Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, EntityRef entity) throws JDOMException Implements org. Doc from org. Print out a
| |
| processAsDocument | back to summary |
|---|---|
| public void processAsDocument(SAXTarget out, Format format, List<? extends Content> nodes) throws JDOMException Implements org. Doc from org. This will handle printing out a list of nodes that is encapsulated in start/end Document SAX events. This can be useful for printing the content of an element that contains HTML, like "<description>JDOM is <b>fun>!</description>". | |
| processAsDocument | back to summary |
|---|---|
| public void processAsDocument(SAXTarget out, Format format, Element node) throws JDOMException Implements org. Doc from org. Print out an
| |