public abstract class AbstractGpxParser extends DefaultHandler
| Constructor and Description |
|---|
AbstractGpxParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Fires one or more times for each text node encountered.
|
StringBuilder |
getContentBuffer()
Gives the actual contentBuffer
|
String |
getCurrentElement()
Gives a string representing the value of the element which is being
parsed.
|
GPXLine |
getCurrentLine()
Gives the line which is being parsed.
|
GPXPoint |
getCurrentPoint()
Gives the point which is being parsed.
|
GPXLine |
getCurrentSegment()
Gives the segment which is being parsed.
|
StringStack |
getElementNames()
Gives the actual StringStack elementNames
|
org.locationtech.jts.geom.GeometryFactory |
getGeometryFactory()
Gives a geometryFactory to construct gpx geometries
|
XMLReader |
getReader()
Gives the XMLReader used to parse the document.
|
PreparedStatement |
getRtePreparedStmt()
Gives the preparedstatement used to store route data
|
PreparedStatement |
getRteptPreparedStmt()
Gives the prepared statement used to store the route points.
|
PreparedStatement |
getTrkPointsPreparedStmt()
Gives the prepared statement used to store the track points.
|
PreparedStatement |
getTrkPreparedStmt()
Gives the prepared statement used to store the track.
|
PreparedStatement |
getTrkSegmentsPreparedStmt()
Gives the prepared statement used to store the track segments.
|
PreparedStatement |
getWptPreparedStmt()
Get the PreparedStatement of the waypoints table.
|
boolean |
isSpecificElement()
Indicates if we are in a specific element (waypoint, route or track).
|
void |
setContentBuffer(StringBuilder contentBuffer)
Set the contentBuffer.
|
void |
setCurrentElement(String currentElement)
Set the string representing the value of the element which is being
parsed.
|
void |
setCurrentLine(GPXLine currentLine)
Set the line which will be parsed.
|
void |
setCurrentPoint(GPXPoint currentPoint)
Set the point which will be parsed.
|
void |
setCurrentSegment(GPXLine currentSegment)
Set the segment which will be parsed.
|
void |
setElementNames(StringStack elementNames)
Set the actual StringStack elementNames
|
void |
setReader(XMLReader reader)
Set the XMLReader used to parse the document.
|
void |
setRtePreparedStmt(PreparedStatement rtePreparedStmt)
Set the PreparedStatement of the route table.
|
void |
setRteptPreparedStmt(PreparedStatement rteptPreparedStmt)
Set the PreparedStatement of the route points table.
|
void |
setSpecificElement(boolean specificElement)
Set the indicator to know if we are in a specific element.
|
void |
setTrkPointsPreparedStmt(PreparedStatement trkPointsPreparedStmt)
Set the prepared statement used to store the track points.
|
void |
setTrkPreparedStmt(PreparedStatement trkPreparedStmt)
Set the prepared statement used to store the track.
|
void |
setTrkSegmentsPreparedStmt(PreparedStatement trkSegmentsPreparedStmt)
Set the prepared statement used to store the track segments.
|
void |
setWptPreparedStmt(PreparedStatement wptPreparedStmt)
Set the PreparedStatement of the waypoints table.
|
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - The characters from the XML documentstart - The start position in the arraylength - The number of characters to read from the arraySAXException - Any SAX exception, possibly wrapping another
exceptionpublic StringBuilder getContentBuffer()
public void setContentBuffer(StringBuilder contentBuffer)
contentBuffer - public String getCurrentElement()
public void setCurrentElement(String currentElement)
currentElement - public GPXPoint getCurrentPoint()
public void setCurrentPoint(GPXPoint currentPoint)
currentPoint - public XMLReader getReader()
public void setReader(XMLReader reader)
reader - public StringStack getElementNames()
public void setElementNames(StringStack elementNames)
elementNames - public boolean isSpecificElement()
public void setSpecificElement(boolean specificElement)
specificElement - public PreparedStatement getWptPreparedStmt()
public void setWptPreparedStmt(PreparedStatement wptPreparedStmt)
wptPreparedStmt - public void setRtePreparedStmt(PreparedStatement rtePreparedStmt)
rtePreparedStmt - public PreparedStatement getRtePreparedStmt()
public void setRteptPreparedStmt(PreparedStatement rteptPreparedStmt)
rteptPreparedStmt - public PreparedStatement getRteptPreparedStmt()
public PreparedStatement getTrkPreparedStmt()
public PreparedStatement getTrkPointsPreparedStmt()
public PreparedStatement getTrkSegmentsPreparedStmt()
public void setTrkPreparedStmt(PreparedStatement trkPreparedStmt)
trkPreparedStmt - public void setTrkSegmentsPreparedStmt(PreparedStatement trkSegmentsPreparedStmt)
trkSegmentsPreparedStmt - public void setTrkPointsPreparedStmt(PreparedStatement trkPointsPreparedStmt)
trkPointsPreparedStmt - public GPXLine getCurrentSegment()
public void setCurrentSegment(GPXLine currentSegment)
currentSegment - public org.locationtech.jts.geom.GeometryFactory getGeometryFactory()
public GPXLine getCurrentLine()
public void setCurrentLine(GPXLine currentLine)
currentLine - Copyright © 2019 CNRS. All rights reserved.