public class StringXMLEventParser extends AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
StringXMLEventParser() |
StringXMLEventParser(String namespaceUri) |
Modifier and Type | Method and Description |
---|---|
Object |
parse(XMLEventParserContext ctx,
XMLEvent stringEvent,
Object... args)
Parse the event and initialize the parser's values to those found in the event.
|
String |
parseString(XMLEventParserContext ctx,
XMLEvent stringEvent,
Object... args) |
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parseCharacterContent, removeField, setField, setField, setFields, setNamespaceURI, setParent
public StringXMLEventParser()
public StringXMLEventParser(String namespaceUri)
public Object parse(XMLEventParserContext ctx, XMLEvent stringEvent, Object... args) throws XMLStreamException
AbstractXMLEventParser
parse
in interface XMLEventParser
parse
in class AbstractXMLEventParser
ctx
- a current parser context.stringEvent
- the event to parse.args
- an optional list of arguments that may by used by subclasses.this
, otherwise returns null.XMLStreamException
- if an exception occurs during event-stream reading.public String parseString(XMLEventParserContext ctx, XMLEvent stringEvent, Object... args) throws XMLStreamException
XMLStreamException