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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.XmlStreamWriterTemplate

public class XmlStreamWriterTemplate
extends Object

Encapsulates the boiler plate around creating a stream writer.


Constructor Summary
XmlStreamWriterTemplate(XMLOutputFactory xmlFragmentOutputFactory)
           
 
Method Summary
 String execute(XmlStreamWriterCallback callback)
          Executes the specified callback and returns a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlStreamWriterTemplate

public XmlStreamWriterTemplate(XMLOutputFactory xmlFragmentOutputFactory)
Method Detail

execute

public String execute(XmlStreamWriterCallback callback)
               throws XMLStreamException,
                      XhtmlException
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


Copyright © 2003-2011 Atlassian. All Rights Reserved.