Package gov.nasa.worldwind.ogc.kml
Class KMLCoordinatesParser
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.AbstractXMLEventParser
-
- gov.nasa.worldwind.ogc.kml.KMLCoordinatesParser
-
- All Implemented Interfaces:
XMLEventParser
public class KMLCoordinatesParser extends AbstractXMLEventParser
Parses KML coordinates elements.
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description KMLCoordinatesParser()
KMLCoordinatesParser(java.lang.String namespaceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Position.PositionList
parse(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent doubleEvent, java.lang.Object... args)
Parse the event and initialize the parser's values to those found in the event.-
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, setNamespaceURI, setParent
-
-
-
-
Method Detail
-
parse
public Position.PositionList parse(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent doubleEvent, java.lang.Object... args) throws javax.xml.stream.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 interfaceXMLEventParser
- Overrides:
parse
in classAbstractXMLEventParser
- Parameters:
ctx
- a current parser context.doubleEvent
- 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:
javax.xml.stream.XMLStreamException
- if an exception occurs during event-stream reading.
-
-