Top Description Interfaces Classes Enums
[default module]

Package org.jdom2.output


Classes to output JDOM documents to various destinations. The most common outputter class is XMLOutputter which outputs a document (or part of a document) as a stream of bytes. Format and EscapeStrategy support the XMLOutputter in letting you choose how the output should be formatted and how special characters should be escaped. SAXOutputter lets you output as a stream of SAX events (handy especially in transformations). JDOMLocator supports SAXOutputter and helps you observe the SAX output process. DOMOutputter lets you output a JDOM document as a DOM tree. StAXStreamOutputter lets you output the JDOM content to an XMLStreamWriter, and the StAXEventOutputter lets you output the JDOM content to an XMLEventWriter.

Interface Summary

Modifier and TypeInterface and Description
public interface
EscapeStrategy

Logic to determine which characters should be formatted as character entities.

public interface
JDOMLocator

An implementation of the SAX Locator interface that exposes the JDOM node being processed by SAXOutputter.

Class Summary

Modifier and TypeClass and Description
public class
public class
Format

Class to encapsulate XMLOutputter format options.

public class
SAXOutputter

Outputs a JDOM document as a stream of SAX2 events.

public class
StAXEventOutputter

Outputs a JDOM document as a StAX XMLEventConsumer of bytes.

public class
StAXStreamOutputter

Outputs a JDOM document as a StAX XMLStreamWriter of bytes.

public class
StAXStreamReader

Represents a JDOM document as a StAX XMLStreamReader that can be read from.

public class
XMLOutputter

Outputs a JDOM document as a stream of bytes.

Enum Summary

Modifier and TypeEnum and Description
public enum
LineSeparator

An enumeration of common separators that are used for JDOM output.