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 GMLHandlerprivate GeometryFactoryprivate Listprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String name, String qName) SAX handler - handle state information and transitions based on ending elements.voidignorableWhitespace(char[] ch, int start, int length) voidstartElement(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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin 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:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler- Throws:
SAXException
-
endElement
SAX handler - handle state information and transitions based on ending elements.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Parameters:
uri- Description of the Parametername- Description of the ParameterqName- Description of the Parameter- Throws:
SAXException- Description of the Exception
-