org.openstreetmap.josm.io
Class OsmChangesetContentParser
java.lang.Object
org.openstreetmap.josm.io.OsmChangesetContentParser
public class OsmChangesetContentParser
- extends java.lang.Object
Parser for OSM changeset content.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
source
private org.xml.sax.InputSource source
data
private ChangesetDataSet data
OsmChangesetContentParser
public OsmChangesetContentParser(java.io.InputStream source)
throws java.io.UnsupportedEncodingException
- Create a parser
- Parameters:
source
- the input stream with the changeset content as XML document. Must not be null.
- Throws:
java.lang.IllegalArgumentException
- thrown if source is null.
java.io.UnsupportedEncodingException
OsmChangesetContentParser
public OsmChangesetContentParser(java.lang.String source)
parse
public ChangesetDataSet parse(ProgressMonitor progressMonitor)
throws OsmDataParsingException
- Parses the content
- Parameters:
progressMonitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if null
- Returns:
- the parsed data
- Throws:
OsmDataParsingException
- thrown if something went wrong. Check for chained
exceptions.
parse
public ChangesetDataSet parse()
throws OsmDataParsingException
- Parses the content from the input source
- Returns:
- the parsed data
- Throws:
OsmDataParsingException
- thrown if something went wrong. Check for chained
exceptions.
JOSM