NASA World Wind

gov.nasa.worldwind.util.xml
Class StringXMLEventParser

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.util.xml.StringXMLEventParser
All Implemented Interfaces:
XMLEventParser

public class StringXMLEventParser
extends AbstractXMLEventParser

Parse a string from an XML event.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
StringXMLEventParser()
           
StringXMLEventParser(String namespaceUri)
           
 
Method Summary
 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)
           
 
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
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, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringXMLEventParser

public StringXMLEventParser()

StringXMLEventParser

public StringXMLEventParser(String namespaceUri)
Method Detail

parse

public Object parse(XMLEventParserContext ctx,
                    XMLEvent stringEvent,
                    Object... args)
             throws XMLStreamException
Description copied from class: AbstractXMLEventParser
Parse the event and initialize the parser's values to those found in the event.

Specified by:
parse in interface XMLEventParser
Overrides:
parse in class AbstractXMLEventParser
Parameters:
ctx - a current parser context.
stringEvent - the event to parse.
args - an optional list of arguments that may by used by subclasses.
Returns:
if parsing is successful, returns this, otherwise returns null.
Throws:
XMLStreamException - if an exception occurs during event-stream reading.

parseString

public String parseString(XMLEventParserContext ctx,
                          XMLEvent stringEvent,
                          Object... args)
                   throws XMLStreamException
Throws:
XMLStreamException

NASA World Wind