public abstract class AbstractGpxParserDefault extends AbstractGpxParser
| Modifier and Type | Field and Description |
|---|---|
static int |
STRINGSTACK_SIZE |
| Constructor and Description |
|---|
AbstractGpxParserDefault() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getCreator()
Gives the name or URL of the software that created the GPX document.
|
String |
getDesc()
Gives a description of the contents of the GPX file.
|
String |
getFullAuthor()
Gives the name of person or organization who created the GPX file.
|
String |
getFullLink()
Gives URLs associated with the location described in the file.
|
String |
getKeywords()
Gives keywords associated with the file.
|
double |
getMaxLat()
Gives the maximum latitude given by
|
double |
getMaxLon()
Gives the maximum longitude given by
|
double |
getMinLat()
Gives the minimum latitude given by
|
double |
getMinLon()
Gives the minimum longitude given by
|
String |
getName()
Gives the name of the document.
|
AbstractGpxParserRte |
getRteParser()
Gives the parser used to parse routes.
|
String |
getTime()
Gives the date when this file is created.
|
AbstractGpxParserTrk |
getTrkParser()
Givers the parser used to parse the track
|
String |
getVersion()
Gives the version number of the GPX document.
|
AbstractGpxParserWpt |
getWptParser()
Gives the parser used to parse waypoint.
|
boolean |
read(File inputFile,
String tableName,
Connection connection)
Reads the document and parses it.
|
void |
setAuthorLink(String authorLink)
Set the link related to the author of the ducument.
|
void |
setAuthorLinkText(String authorLinkText)
Set the description of the link related to the author.
|
void |
setAuthorName(String authorName)
Set the name of the author of the document.
|
void |
setEmail(String email)
Set the email of the author of the document.
|
void |
setLink(String link)
Set the link related to the document.
|
void |
setLinkText(String linkText)
Set the description of hte document link.
|
void |
setName(String name)
Set the name of the document.
|
void |
setRteParser(AbstractGpxParserRte rteParser)
Set the parser used to parse routes.
|
void |
setTrkParser(AbstractGpxParserTrk trkParser)
Set the parser used to parse the track
|
void |
setWptParser(AbstractGpxParserWpt wptParser)
Set the parser used to parse waypoint.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Fires whenever an XML start markup is encountered.
|
characters, getContentBuffer, getCurrentElement, getCurrentLine, getCurrentPoint, getCurrentSegment, getElementNames, getGeometryFactory, getReader, getRtePreparedStmt, getRteptPreparedStmt, getTrkPointsPreparedStmt, getTrkPreparedStmt, getTrkSegmentsPreparedStmt, getWptPreparedStmt, isSpecificElement, setContentBuffer, setCurrentElement, setCurrentLine, setCurrentPoint, setCurrentSegment, setElementNames, setReader, setRtePreparedStmt, setRteptPreparedStmt, setSpecificElement, setTrkPointsPreparedStmt, setTrkPreparedStmt, setTrkSegmentsPreparedStmt, setWptPreparedStmtendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static final int STRINGSTACK_SIZE
public void clear()
public boolean read(File inputFile, String tableName, Connection connection) throws SQLException
inputFile - a File representing the gpx file to readtableName - the table used to create all tablesconnection - the connection to the databaseSQLException - if the creation of the tables failedpublic 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 void endElement(String uri, String localName, String qName)
endElement in interface ContentHandlerendElement in class DefaultHandleruri - URI of the local elementlocalName - Name of the local element (without prefix)qName - qName of the local element (with prefix)public String getTime()
public String getVersion()
public String getCreator()
public double getMinLon()
public double getMaxLon()
public double getMinLat()
public double getMaxLat()
public String getDesc()
public String getKeywords()
public String getFullLink()
public String getFullAuthor()
public void setAuthorLink(String authorLink)
authorLink - public void setAuthorLinkText(String authorLinkText)
authorLinkText - public void setAuthorName(String authorName)
authorName - public void setEmail(String email)
email - public void setLink(String link)
link - public void setLinkText(String linkText)
linkText - public String getName()
public void setName(String name)
name - public AbstractGpxParserWpt getWptParser()
public void setWptParser(AbstractGpxParserWpt wptParser)
wptParser - public void setRteParser(AbstractGpxParserRte rteParser)
rteParser - public AbstractGpxParserRte getRteParser()
public void setTrkParser(AbstractGpxParserTrk trkParser)
trkParser - public AbstractGpxParserTrk getTrkParser()
Copyright © 2019 CNRS. All rights reserved.