Package org.openstreetmap.josm.io
Class OsmChangesetContentParser
java.lang.Object
org.openstreetmap.josm.io.OsmChangesetContentParser
Parser for OSM changeset content.
- Since:
- 2688
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOsmChangesetContentParser(InputStream source) Constructs a newOsmChangesetContentParser.OsmChangesetContentParser(String source) Constructs a newOsmChangesetContentParser. -
Method Summary
Modifier and TypeMethodDescriptionparse()Parses the content from the input sourceparse(ProgressMonitor progressMonitor) Parses the content.parse(ProgressMonitor progressMonitor, boolean useAnonymousUser) Parses the content.
-
Field Details
-
source
-
data
-
-
Constructor Details
-
OsmChangesetContentParser
Constructs a newOsmChangesetContentParser.- Parameters:
source- the input stream with the changeset content as XML document. Must not be null.- Throws:
IllegalArgumentException- if source isnull.
-
OsmChangesetContentParser
Constructs a newOsmChangesetContentParser.- Parameters:
source- the input stream with the changeset content as XML document. Must not be null.- Throws:
IllegalArgumentException- if source isnull.
-
-
Method Details
-
parse
Parses the content.- Parameters:
progressMonitor- the progress monitor. Set toNullProgressMonitor.INSTANCEif null- Returns:
- the parsed data
- Throws:
XmlParsingException- if something went wrong. Check for chained exceptions.
-
parse
public ChangesetDataSet parse(ProgressMonitor progressMonitor, boolean useAnonymousUser) throws XmlParsingException Parses the content.- Parameters:
progressMonitor- the progress monitor. Set toNullProgressMonitor.INSTANCEif nulluseAnonymousUser- if true, replace all user information with the anonymous user- Returns:
- the parsed data
- Throws:
XmlParsingException- if something went wrong. Check for chained exceptions.- Since:
- 14946
-
parse
Parses the content from the input source- Returns:
- the parsed data
- Throws:
XmlParsingException- if something went wrong. Check for chained exceptions.
-