public class DefaultXmlEventReaderFactory extends Object implements XmlEventReaderFactory
Constructor and Description |
---|
DefaultXmlEventReaderFactory()
This is a convenience constructor used in testing.
|
DefaultXmlEventReaderFactory(XMLEntityResolver resolver) |
Modifier and Type | Method and Description |
---|---|
XMLEventReader |
createEditorXmlEventReader(Reader xml) |
XMLEventReader |
createStorageXmlEventReader(Reader xml) |
XMLEventReader |
createStorageXmlEventReader(Reader xml,
boolean entityReplacing)
This method is experimental and may change at very short notice.
|
XMLEventReader |
createXmlEventReader(Reader xml) |
XMLEventReader |
createXMLEventReader(Reader xml,
List<Namespace> namespaces,
boolean entityReplacing)
A factory method providing more detailed control over the XMLEventReader you require.
|
XMLEventReader |
createXmlFragmentBodyEventReader(XMLEventReader delegate) |
XMLEventReader |
createXmlFragmentEventReader(Reader xml)
Create a fragment event reader which excludes the start and end document events.
|
XMLEventReader |
createXmlFragmentEventReader(XMLEventReader delegate) |
public DefaultXmlEventReaderFactory()
public DefaultXmlEventReaderFactory(XMLEntityResolver resolver)
public XMLEventReader createXmlEventReader(Reader xml) throws XMLStreamException
createXmlEventReader
in interface XmlEventReaderFactory
XMLStreamException
public XMLEventReader createXmlFragmentEventReader(Reader xml) throws XMLStreamException
XmlEventReaderFactory
createXmlFragmentEventReader
in interface XmlEventReaderFactory
XMLStreamException
public XMLEventReader createStorageXmlEventReader(Reader xml) throws XMLStreamException
createStorageXmlEventReader
in interface XmlEventReaderFactory
XMLStreamException
public XMLEventReader createStorageXmlEventReader(Reader xml, boolean entityReplacing) throws XMLStreamException
XmlEventReaderFactory
createStorageXmlEventReader
in interface XmlEventReaderFactory
XMLStreamException
public XMLEventReader createEditorXmlEventReader(Reader xml) throws XMLStreamException
createEditorXmlEventReader
in interface XmlEventReaderFactory
XMLStreamException
public XMLEventReader createXMLEventReader(Reader xml, List<Namespace> namespaces, boolean entityReplacing) throws XMLStreamException
XmlEventReaderFactory
createXMLEventReader
in interface XmlEventReaderFactory
xml
- the XML formatted data to be readnamespaces
- a List of namespaces to be found within the supplied XML dataentityReplacing
- a flag indicating whether entities found within the XML data should be replaced with characters, or left as entities.XMLStreamException
public XMLEventReader createXmlFragmentEventReader(XMLEventReader delegate) throws XMLStreamException
createXmlFragmentEventReader
in interface XmlEventReaderFactory
XMLStreamException
public XMLEventReader createXmlFragmentBodyEventReader(XMLEventReader delegate) throws XMLStreamException
createXmlFragmentBodyEventReader
in interface XmlEventReaderFactory
XMLStreamException
Copyright © 2003–2020 Atlassian. All rights reserved.