XMLOutputter.
People who want to create a custom XMLOutputProcessor for XMLOutputter are able to implement this interface with the following notes and restrictions:
process(XMLEventConsumer,Format,*) methods each
time the XMLOutputter is requested to output some JDOM content. It is thus
safe to assume that a process(XMLEventConsumer,Format,*) method can set up any
infrastructure needed to process the content, and that the XMLOutputter will
not re-call that method, or some other process(XMLEventConsumer,Format,*) method for the same output
sequence.
process(XMLEventConsumer,Format,*) method may (will) be called concurrently from different threads.
The AbstractXMLOutputProcessor class is a full implementation of this
interface and is fully customisable. People who want a custom XMLOutputter
are encouraged to extend the AbstractXMLOutputProcessor rather than do a full
re-implementation of this interface.
XMLOutputter, AbstractXMLOutputProcessor
| Modifier and Type | Method and Description |
|---|---|
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.Document to format.This will print the |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.DocType to output.Print out the |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.Element to output.Print out an |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.List of nodes.This will handle printing out a list of nodes. |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.CDATA to output.Print out a |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.Text to output.Print out a |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.Comment to output.Print out a |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.ProcessingInstruction to output.Print out a |
| public void | process(XMLEventConsumer
XMLEventConsumer to use.Format instance specifying output styleXMLEventFactory for creating XMLEvent instances.EntityRef to output.Print out a |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Document doc) throws XMLStreamException This will print the Warning using your own XMLEventConsumer 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(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, DocType doctype) throws XMLStreamException Print out the
| |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Element element) throws XMLStreamException Print out an
| |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) throws XMLStreamException 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(XMLEventConsumer out, Format format, XMLEventFactory eventfactpry, CDATA cdata) throws XMLStreamException Print out a
| |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Text text) throws XMLStreamException Print out a
| |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Comment comment) throws XMLStreamException Print out a
| |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, ProcessingInstruction pi) throws XMLStreamException Print out a
| |
| process | back to summary |
|---|---|
| public void process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, EntityRef entity) throws XMLStreamException Print out a
| |