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

All Known Implementing Classes:
DefaultXmlStreamWriterTemplate

public interface XmlStreamWriterTemplate


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

Method Detail

execute

@Deprecated
java.lang.String execute(XmlStreamWriterCallback callback)
                         throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException
XhtmlException

execute

void execute(java.io.Writer writer,
             XmlStreamWriterCallback callback)
             throws javax.xml.stream.XMLStreamException,
                    java.io.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:
javax.xml.stream.XMLStreamException
XhtmlException
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.