Package org.openstreetmap.josm.io
Interface IGpxReader
-
- All Known Implementing Classes:
GpxReader
,NmeaReader
,OziWptReader
,RtkLibPosReader
public interface IGpxReader
Abstraction ofGpxReader
,NmeaReader
,OziWptReader
andRtkLibPosReader
- Since:
- 14010
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GpxData
getGpxData()
Replies the GPX data.default int
getNumberOfCoordinates()
Returns the number of coordinates that have been successfully read.boolean
parse(boolean tryToFinish)
Parse the GPX data.
-
-
-
Method Detail
-
parse
boolean parse(boolean tryToFinish) throws org.xml.sax.SAXException, java.io.IOException
Parse the GPX data.- Parameters:
tryToFinish
- true, if the reader should return at least part of the GPX data in case of an error.- Returns:
- true if file was properly parsed, false if there was error during parsing but some data were parsed anyway
- Throws:
org.xml.sax.SAXException
- if any SAX parsing error occursjava.io.IOException
- if any I/O error occursjava.lang.UnsupportedOperationException
- if the format is not supported
-
getGpxData
GpxData getGpxData()
Replies the GPX data.- Returns:
- The GPX data
-
getNumberOfCoordinates
default int getNumberOfCoordinates()
Returns the number of coordinates that have been successfully read.- Returns:
- the number of coordinates that have been successfully read
- Since:
- 18179
-
-