Package org.xwiki.filter.xml.parser
Interface XMLParserFactory
-
@Role public interface XMLParserFactory
Create XML parsers.- Since:
- 5.2M1
- Version:
- $Id: e68b5a9dfc8fd7c75bcb9b438cce01a22ced6c3f $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentHandlercreateContentHandler(Object filter, XMLConfiguration configuration)ResultcreateResult(Object filter, XMLConfiguration configuration)XMLEventWritercreateXMLEventWriter(Object filter, XMLConfiguration configuration)voidparse(Source source, Object filter, XMLConfiguration configuration)
-
-
-
Method Detail
-
parse
void parse(Source source, Object filter, XMLConfiguration configuration) throws XMLStreamException
- Parameters:
source- the source to readfilter- the filter to send events toconfiguration- the configuration of the parser- Throws:
XMLStreamException- when failing to create the parser
-
createResult
Result createResult(Object filter, XMLConfiguration configuration)
- Parameters:
filter- the filter to send events toconfiguration- the configuration of the parser- Returns:
- the parser as a
Result.
-
createXMLEventWriter
XMLEventWriter createXMLEventWriter(Object filter, XMLConfiguration configuration)
- Parameters:
filter- the filter to send events toconfiguration- the configuration of the parser- Returns:
- the parser as a
Result.
-
createContentHandler
ContentHandler createContentHandler(Object filter, XMLConfiguration configuration)
- Parameters:
filter- the filter to send events toconfiguration- the configuration of the parser- Returns:
- the parser as a
ContentHandler
-
-