SAXOutputter.
People who want to create a custom SAXOutputProcessor for SAXOutputter are able to implement this interface with the following notes and restrictions:
process(SAXTarget,Format,*) methods each time the SAXOutputter
is requested to output some JDOM content. It is thus safe to assume that a
process(SAXTarget,Format,*) method can set up any infrastructure
needed to process the content, and that the SAXOutputter will not re-call
that method, or some other process(SAXTarget,Format,*) method
for the same output sequence.
process(SAXTarget,Format,*) method may (will) be called
concurrently from different threads.
The AbstractSAXOutputProcessor class is a full implementation of this
interface and is fully customisable. People who want a custom SAXOutputter
are encouraged to extend the AbstractSAXOutputProcessor rather than do a full
re-implementation of this interface.
SAXOutputter, AbstractSAXOutputProcessor
| Modifier and Type | Method and Description |
|---|---|
| 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.Print out a |
| public void | |
| public void | |
| public void | processAsDocument(SAXTarget
SAXTarget to use.Format instance specifying output styleList of nodes.This will handle printing out a list of nodes that is encapsulated in start/end Document SAX events. |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Document doc) throws JDOMException 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 Print out the
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Element element) throws JDOMException Print out an
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, List<? extends Content> list) throws JDOMException 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 Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Text text) throws JDOMException Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, Comment comment) throws JDOMException Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, ProcessingInstruction pi) throws JDOMException Print out a
| |
| process | back to summary |
|---|---|
| public void process(SAXTarget out, Format format, EntityRef entity) throws JDOMException Print out a
| |
| processAsDocument | back to summary |
|---|---|
| public void processAsDocument(SAXTarget out, Format format, Element element) throws JDOMException Print out an
| |
| processAsDocument | back to summary |
|---|---|
| public void processAsDocument(SAXTarget out, Format format, List<? extends Content> list) throws JDOMException 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>".
| |