Class KMLHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.locationtech.jtsexample.io.gml2.KMLHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GMLHandler
private GeometryFactory
private List
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String name, String qName) SAX handler - handle state information and transitions based on ending elements.void
ignorableWhitespace
(char[] ch, int start, int length) void
startElement
(String uri, String name, String qName, Attributes atts) SAX handler.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
geoms
-
currGeomHandler
-
lastEltName
-
fact
-
-
Constructor Details
-
KMLHandler
public KMLHandler()
-
-
Method Details
-
getGeometries
-
startElement
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException SAX handler. Handle state and state transitions based on an element starting.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
uri
- Description of the Parametername
- Description of the ParameterqName
- Description of the Parameteratts
- Description of the Parameter- Throws:
SAXException
- Description of the Exception
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classDefaultHandler
- Throws:
SAXException
-
endElement
SAX handler - handle state information and transitions based on ending elements.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
uri
- Description of the Parametername
- Description of the ParameterqName
- Description of the Parameter- Throws:
SAXException
- Description of the Exception
-