com.atlassian.confluence.content.render.xhtml
Interface XmlStreamWriterTemplate

All Known Implementing Classes:
DefaultXmlStreamWriterTemplate

public interface XmlStreamWriterTemplate


Method Summary
 void execute(Writer writer, XmlStreamWriterCallback callback)
          Executes the specified callback and writes to the provided writer.
 String execute(XmlStreamWriterCallback callback)
          Deprecated. since 5.2 - use the streaming version of the method execute(java.io.Writer, XmlStreamWriterCallback)
 

Method Detail

execute

@Deprecated
String execute(XmlStreamWriterCallback callback)
               throws XMLStreamException,
                      XhtmlException
Deprecated. since 5.2 - use the streaming version of the method execute(java.io.Writer, XmlStreamWriterCallback)

Executes the specified callback and returns a string.

Parameters:
callback - the stream writer will be exposed to this callback for writing
Returns:
what was written to the stream writer as a string
Throws:
XMLStreamException
XhtmlException

execute

void execute(Writer writer,
             XmlStreamWriterCallback callback)
             throws XMLStreamException,
                    IOException
Executes the specified callback and writes to the provided writer.

Parameters:
callback - the stream writer will be exposed to this callback for writing
writer - the writer to which the output should be sent
Throws:
XMLStreamException
XhtmlException
IOException


Copyright © 2003–2015 Atlassian. All rights reserved.