public class OSMPreParser extends DefaultHandler
| Constructor and Description |
|---|
OSMPreParser()
Initializing of the pre-parser.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTotalNode() |
int |
getTotalRelation() |
int |
getTotalWay() |
String |
getVersion() |
boolean |
read(File inputFile)
Reads the document and pre-parses it.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Fires whenever an XML start markup is encountered.
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic OSMPreParser()
public boolean read(File inputFile) throws SAXException, IOException
inputFile - the file to readSAXExceptionIOExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - URI of the local elementlocalName - Name of the local element (without prefix)qName - qName of the local element (with prefix)attributes - Attributes of the local element (contained in the
markup)SAXException - Any SAX exception, possibly wrapping another
exceptionpublic String getVersion()
public int getTotalNode()
public int getTotalWay()
public int getTotalRelation()
Copyright © 2019 CNRS. All rights reserved.