Uses of Class
org.jdom2.output.Format
Packages that use Format
Package
Description
Classes to output JDOM documents to various destinations.
Classes used to implement output functionality that are not part of the
actual Output API, but rather part of the implementation.
-
Uses of Format in org.jdom2.output
Methods in org.jdom2.output that return FormatModifier and TypeMethodDescriptionFormat.clone()static FormatFormat.getCompactFormat()Returns a new Format object that performs whitespace normalization, uses the UTF-8 encoding, doesn't expand empty elements, includes the declaration and encoding, and uses the default entity escape strategy.DOMOutputter.getFormat()Get the Format instance currently used by this DOMOutputter.SAXOutputter.getFormat()Get the currentFormatbeing used for outputStAXEventOutputter.getFormat()Returns the current format in use by the StAXStreamOutputter.StAXStreamOutputter.getFormat()Returns the current format in use by the StAXStreamOutputter.XMLOutputter.getFormat()Returns the current format in use by the XMLOutputter.static FormatFormat.getPrettyFormat()Returns a new Format object that performs whitespace beautification with 2-space indents, uses the UTF-8 encoding, doesn't expand empty elements, includes the declaration and encoding, and uses the default entity escape strategy.static FormatFormat.getRawFormat()Returns a new Format object that performs no whitespace changes, uses the UTF-8 encoding, doesn't expand empty elements, includes the declaration and encoding, and uses the default entity escape strategy.Format.setEncoding(String encoding) Sets the output encoding.Format.setEscapeStrategy(EscapeStrategy strategy) Sets theEscapeStrategyto use for character escaping.Format.setExpandEmptyElements(boolean expandEmptyElements) This will set whether empty elements are expanded from<tagName/>to<tagName></tagName>.This will set the indentStringto use; this is usually aStringof empty spaces.Format.setLineSeparator(String separator) This will set the newline separator (LineSeparator).Format.setLineSeparator(LineSeparator separator) This will set the newline separator sequence.Format.setOmitDeclaration(boolean omitDeclaration) This will set whether the XML declaration (<?xml version="1.0"?>) will be omitted or not.Format.setOmitEncoding(boolean omitEncoding) This will set whether the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) includes the encoding of the document.Format.setTextMode(Format.TextMode mode) This sets the text output style.Methods in org.jdom2.output with parameters of type FormatModifier and TypeMethodDescriptionvoidSet a new Format instance for this DOMOutputtervoidSet the currentFormatto be used for output.voidSets the new format logic for the StAXStreamOutputter.voidSets the new format logic for the StAXStreamOutputter.voidSets the new format logic for the XMLOutputter.Constructors in org.jdom2.output with parameters of type FormatModifierConstructorDescriptionDOMOutputter(DOMAdapter adapter, Format format, DOMOutputProcessor processor) The complete constructor for specifying a custom DOMAdaptor, Format, and DOMOutputProcessor.SAXOutputter(SAXOutputProcessor processor, Format format, ContentHandler contentHandler, ErrorHandler errorHandler, DTDHandler dtdHandler, EntityResolver entityResolver, LexicalHandler lexicalHandler) This will create aSAXOutputterwith the specified SAX2 handlers.StAXEventOutputter(Format format) This will create anStAXStreamOutputterwith the specified format characteristics.StAXEventOutputter(Format format, StAXEventProcessor processor, XMLEventFactory eventfactory) This will create anStAXStreamOutputterwith the specified format characteristics.StAXStreamOutputter(Format format) This will create anStAXStreamOutputterwith the specified format characteristics.StAXStreamOutputter(Format format, StAXStreamProcessor processor) This will create anStAXStreamOutputterwith the specified format characteristics.XMLOutputter(Format format) This will create anXMLOutputterwith the specified format characteristics.XMLOutputter(Format format, XMLOutputProcessor processor) This will create anXMLOutputterwith the specified format characteristics. -
Uses of Format in org.jdom2.output.support
Methods in org.jdom2.output.support with parameters of type FormatModifier and TypeMethodDescriptionAbstractDOMOutputProcessor.process(Document basedoc, Format format, ProcessingInstruction pi) voidvoidvoidvoidvoidvoidvoidvoidAbstractSAXOutputProcessor.process(SAXTarget out, Format format, ProcessingInstruction pi) voidvoidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, CDATA cdata) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Comment comment) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, DocType doctype) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Document doc) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Element element) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, EntityRef entity) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, ProcessingInstruction pi) voidAbstractStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Text text) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, List<? extends Content> list) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, CDATA cdata) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, Comment comment) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, DocType doctype) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, Document doc) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, Element element) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, EntityRef entity) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, ProcessingInstruction pi) voidAbstractStAXStreamProcessor.process(XMLStreamWriter out, Format format, Text text) voidvoidvoidvoidvoidvoidvoidvoidAbstractXMLOutputProcessor.process(Writer out, Format format, ProcessingInstruction pi) voidThis will convert the list of JDOMusing the given DOM Document to create the resulting list of DOM Nodes.ContentThis will convert theusing the given DOM Document to create the resulting DOM Attr.AttributeThis will convert theusing the given DOM Document to create the resulting DOM CDATASection.CDATAThis will convert theusing the given DOM Document to create the resulting DOM Comment.CommentThis will convert theto the given DOM Document.DocumentThis will convert theusing the given DOM Document to create the resulting DOM Element.ElementThis will convert theusing the given DOM Document to create the resulting DOM EntityReference.EntityRefDOMOutputProcessor.process(Document basedoc, Format format, ProcessingInstruction pi) This will convert theusing the given DOM Document to create the resulting DOM ProcessingInstruction.ProcessingInstructionThis will convert theusing the given DOM Document to create the resulting DOM Text.TextvoidThis will handle printing out a list of nodes.voidPrint out anode.CDATAvoidPrint out a.CommentvoidPrint out the.DocTypevoidThis will print theto the given SAXTarget.DocumentvoidvoidPrint out a.EntityRefvoidSAXOutputProcessor.process(SAXTarget out, Format format, ProcessingInstruction pi) Print out a.ProcessingInstructionvoidPrint out anode.TextvoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) This will handle printing out a list of nodes.voidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactpry, CDATA cdata) Print out anode.CDATAvoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Comment comment) Print out a.CommentvoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, DocType doctype) Print out the.DocTypevoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Document doc) This will print theto the given XMLEventConsumer.DocumentvoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Element element) voidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, EntityRef entity) Print out a.EntityRefvoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, ProcessingInstruction pi) Print out a.ProcessingInstructionvoidStAXEventProcessor.process(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Text text) Print out anode.TextvoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, List<? extends Content> list) This will handle printing out a list of nodes.voidStAXStreamProcessor.process(XMLStreamWriter out, Format format, CDATA cdata) Print out anode.CDATAvoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, Comment comment) Print out a.CommentvoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, DocType doctype) Print out the.DocTypevoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, Document doc) This will print theto the given XMLStreamWriter.DocumentvoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, Element element) voidStAXStreamProcessor.process(XMLStreamWriter out, Format format, EntityRef entity) Print out a.EntityRefvoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, ProcessingInstruction pi) Print out a.ProcessingInstructionvoidStAXStreamProcessor.process(XMLStreamWriter out, Format format, Text text) Print out anode.TextvoidThis will handle printing out a list of nodes.voidPrint out anode.CDATAvoidPrint out a.CommentvoidPrint out the.DocTypevoidThis will print theto the given Writer.DocumentvoidvoidPrint out a.EntityRefvoidXMLOutputProcessor.process(Writer out, Format format, ProcessingInstruction pi) Print out a.ProcessingInstructionvoidPrint out anode.TextvoidAbstractSAXOutputProcessor.processAsDocument(SAXTarget out, Format format, List<? extends Content> nodes) voidAbstractSAXOutputProcessor.processAsDocument(SAXTarget out, Format format, Element node) voidSAXOutputProcessor.processAsDocument(SAXTarget out, Format format, List<? extends Content> list) This will handle printing out a list of nodes thats encapsulated in start/end Document SAX events.voidSAXOutputProcessor.processAsDocument(SAXTarget out, Format format, Element element) Constructors in org.jdom2.output.support with parameters of type FormatModifierConstructorDescriptionFormatStack(Format format) Creates a new FormatStack seeded with the specified Format