net.divbyzero.gpx.parser
Class JDOM
java.lang.Object
net.divbyzero.gpx.parser.JDOM
- All Implemented Interfaces:
- Parser
public class JDOM
- extends Object
- implements Parser
GPX parser based on the JDOM XML parsing toolkit
- Since:
- 0.1
- Author:
- Martin Jansen
- See Also:
- JDOM
Constructor Summary |
JDOM()
|
Method Summary |
GPX |
parse(File file)
Parses a GPX file and returns the resulting GPX track collection |
GPX |
parse(URL url)
Parses a GPX URL and returns the resulting GPX track collection |
JDOM
public JDOM()
parse
public GPX parse(File file)
throws ParsingException
- Description copied from interface:
Parser
- Parses a GPX file and returns the resulting GPX track collection
- Specified by:
parse
in interface Parser
- Parameters:
file
- the file to be parsed
- Returns:
- the resulting track collection
- Throws:
ParsingException
parse
public GPX parse(URL url)
throws ParsingException
- Description copied from interface:
Parser
- Parses a GPX URL and returns the resulting GPX track collection
- Specified by:
parse
in interface Parser
- Parameters:
url
- the URL to be parsed
- Returns:
- the resulting track collection
- Throws:
ParsingException
Processing library MapThing by Jon Reades. (C) 2013