|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.h2gis.drivers.gpx.model.AbstractGpxParser
org.h2gis.drivers.gpx.model.AbstractGpxParserDefault
org.h2gis.drivers.gpx.model.GpxParser
public class GpxParser
Default parser. This class parses GPX 1.1 files and saves them in a file. It set a contentHandler by default which is able to save general information about the document. To save specific information (waypoints, routes and tracks) it will call specific classes.
| Field Summary |
|---|
| Fields inherited from class org.h2gis.drivers.gpx.model.AbstractGpxParserDefault |
|---|
STRINGSTACK_SIZE |
| Constructor Summary | |
|---|---|
GpxParser()
Create a new GPX parser and specify what kind of data must be parsed in the GPX file |
|
| Method Summary | |
|---|---|
void |
clear()
Initialisation of all the indicators used to read the document. |
void |
endElement(String uri,
String localName,
String qName)
Fires whenever an XML end markup is encountered. |
String |
getCopyright()
Gives copyright and license information governing use of the file. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Fires whenever an XML start markup is encountered. |
| Methods inherited from class org.h2gis.drivers.gpx.model.AbstractGpxParserDefault |
|---|
getCreator, getDesc, getFullAuthor, getFullLink, getKeywords, getMaxLat, getMaxLon, getMinLat, getMinLon, getName, getRteParser, getTime, getTrkParser, getVersion, getWptParser, read, setAuthorLink, setAuthorLinkText, setAuthorName, setEmail, setLink, setLinkText, setName, setRteParser, setTrkParser, setWptParser |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, 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 |
| Constructor Detail |
|---|
public GpxParser()
| Method Detail |
|---|
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class AbstractGpxParserDefaulturi - 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
exception
public void endElement(String uri,
String localName,
String qName)
endElement in interface ContentHandlerendElement in class AbstractGpxParserDefaulturi - URI of the local elementlocalName - Name of the local element (without prefix)qName - qName of the local element (with prefix)public void clear()
clear in class AbstractGpxParserDefaultpublic String getCopyright()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||