Class DefaultXmlStreamWriterTemplate
java.lang.Object
com.atlassian.confluence.content.render.xhtml.DefaultXmlStreamWriterTemplate
- All Implemented Interfaces:
XmlStreamWriterTemplate
Encapsulates the boiler plate around creating a stream writer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Writer writer, XmlStreamWriterCallback callback) Executes the specified callback and writes to the provided writer.
-
Constructor Details
-
DefaultXmlStreamWriterTemplate
-
-
Method Details
-
execute
public void execute(Writer writer, XmlStreamWriterCallback callback) throws XMLStreamException, IOException Description copied from interface:XmlStreamWriterTemplateExecutes the specified callback and writes to the provided writer.- Specified by:
executein interfaceXmlStreamWriterTemplate- Parameters:
writer- the writer to which the output should be sentcallback- the stream writer will be exposed to this callback for writing- Throws:
XMLStreamExceptionIOException
-