Package org.openstreetmap.josm.io
Interface IGpxReader
- All Known Implementing Classes:
GpxReader,NmeaReader,OziWptReader,RtkLibPosReader
public interface IGpxReader
Abstraction of
GpxReader, NmeaReader, OziWptReader and RtkLibPosReader- Since:
- 14010
-
Method Summary
Modifier and TypeMethodDescriptionReplies the GPX data.default intReturns the number of coordinates that have been successfully read.booleanparse(boolean tryToFinish) Parse the GPX data.
-
Method Details
-
parse
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:
SAXException- if any SAX parsing error occursIOException- if any I/O error occursUnsupportedOperationException- if the format is not supported
-
getGpxData
Replies the GPX data.- Returns:
- The GPX data
-
getNumberOfCoordinates
Returns the number of coordinates that have been successfully read.- Returns:
- the number of coordinates that have been successfully read
- Since:
- 18179
-