public class GpxReader extends Object implements GpxConstants
Modifier and Type | Class and Description |
---|---|
private class |
GpxReader.Parser |
private static class |
GpxReader.State |
Modifier and Type | Field and Description |
---|---|
private GpxData |
gpxData
The resulting gpx data
|
private InputSource |
inputSource |
private String |
version |
JOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, WPT_KEYS
Constructor and Description |
---|
GpxReader(InputStream source)
Parse the input stream and store the result in trackData and markerData
|
Modifier and Type | Method and Description |
---|---|
GpxData |
getGpxData()
Replies the GPX data.
|
boolean |
parse(boolean tryToFinish)
Parse the GPX data.
|
private InputSource inputSource
public GpxReader(InputStream source) throws IOException
source
- the source input streamIOException
- if an IO error occurs, e.g. the input stream is closed.public boolean parse(boolean tryToFinish) throws SAXException, IOException
tryToFinish
- true, if the reader should return at least part of the GPX
data in case of an error.SAXException
IOException
public GpxData getGpxData()