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

All Known Implementing Classes:
DefaultXmlEventReaderFactory

public interface XmlEventReaderFactory

Factory to create event readers over different types of Confluence XML (namely editor and storage XML).


Method Summary
 javax.xml.stream.XMLEventReader createEditorXmlEventReader(java.io.Reader xml)
           
 javax.xml.stream.XMLEventReader createStorageXmlEventReader(java.io.Reader xml)
           
 javax.xml.stream.XMLEventReader createStorageXmlEventReader(java.io.Reader xml, boolean entityReplacing)
          This method is experimental and may change at very short notice.
 javax.xml.stream.XMLEventReader createXmlEventReader(java.io.Reader xml)
           
 javax.xml.stream.XMLEventReader createXMLEventReader(java.io.Reader xml, java.util.List<Namespace> namespaces, boolean entityReplacing)
          A factory method providing more detailed control over the XMLEventReader you require.
 javax.xml.stream.XMLEventReader createXmlFragmentBodyEventReader(javax.xml.stream.XMLEventReader delegate)
           
 javax.xml.stream.XMLEventReader createXmlFragmentEventReader(java.io.Reader xml)
          Create a fragment event reader which excludes the start and end document events.
 javax.xml.stream.XMLEventReader createXmlFragmentEventReader(javax.xml.stream.XMLEventReader delegate)
           
 

Method Detail

createXmlEventReader

javax.xml.stream.XMLEventReader createXmlEventReader(java.io.Reader xml)
                                                     throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

createXmlFragmentEventReader

javax.xml.stream.XMLEventReader createXmlFragmentEventReader(java.io.Reader xml)
                                                             throws javax.xml.stream.XMLStreamException
Create a fragment event reader which excludes the start and end document events.

Throws:
javax.xml.stream.XMLStreamException

createStorageXmlEventReader

javax.xml.stream.XMLEventReader createStorageXmlEventReader(java.io.Reader xml)
                                                            throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

createStorageXmlEventReader

javax.xml.stream.XMLEventReader createStorageXmlEventReader(java.io.Reader xml,
                                                            boolean entityReplacing)
                                                            throws javax.xml.stream.XMLStreamException
This method is experimental and may change at very short notice.

Throws:
javax.xml.stream.XMLStreamException

createEditorXmlEventReader

javax.xml.stream.XMLEventReader createEditorXmlEventReader(java.io.Reader xml)
                                                           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

createXMLEventReader

javax.xml.stream.XMLEventReader createXMLEventReader(java.io.Reader xml,
                                                     java.util.List<Namespace> namespaces,
                                                     boolean entityReplacing)
                                                     throws javax.xml.stream.XMLStreamException
A factory method providing more detailed control over the XMLEventReader you require.

Parameters:
xml - the XML formatted data to be read
namespaces - a List of namespaces to be found within the supplied XML data
entityReplacing - a flag indicating whether entities found within the XML data should be replaced with characters, or left as entities.
Returns:
the required XMLEventReader.
Throws:
javax.xml.stream.XMLStreamException

createXmlFragmentEventReader

javax.xml.stream.XMLEventReader createXmlFragmentEventReader(javax.xml.stream.XMLEventReader delegate)
                                                             throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

createXmlFragmentBodyEventReader

javax.xml.stream.XMLEventReader createXmlFragmentBodyEventReader(javax.xml.stream.XMLEventReader delegate)
                                                                 throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2003-2014 Atlassian. All Rights Reserved.