Last change
on this file since 14628 was 14010, checked in by Don-vip, 6 years ago |
fix #16471 - Support NMEA files when correlating images to a GPX track
|
-
Property svn:eol-style
set to
native
|
File size:
893 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.io;
|
---|
3 |
|
---|
4 | import java.io.IOException;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.gpx.GpxData;
|
---|
7 | import org.xml.sax.SAXException;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * Abstraction of {@code GpxReader} and {@code NmeaReader}.
|
---|
11 | * @since 14010
|
---|
12 | */
|
---|
13 | public interface IGpxReader {
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Parse the GPX data.
|
---|
17 | *
|
---|
18 | * @param tryToFinish true, if the reader should return at least part of the GPX
|
---|
19 | * data in case of an error.
|
---|
20 | * @return true if file was properly parsed, false if there was error during
|
---|
21 | * parsing but some data were parsed anyway
|
---|
22 | * @throws SAXException if any SAX parsing error occurs
|
---|
23 | * @throws IOException if any I/O error occurs
|
---|
24 | */
|
---|
25 | boolean parse(boolean tryToFinish) throws SAXException, IOException;
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Replies the GPX data.
|
---|
29 | * @return The GPX data
|
---|
30 | */
|
---|
31 | GpxData getGpxData();
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.