public class OsmChangesetContentParser extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
OsmChangesetContentParser.Parser |
| Modifier and Type | Field and Description |
|---|---|
private ChangesetDataSet |
data |
private InputSource |
source |
| Constructor and Description |
|---|
OsmChangesetContentParser(InputStream source)
Constructs a new
OsmChangesetContentParser. |
OsmChangesetContentParser(String source)
Constructs a new
OsmChangesetContentParser. |
| Modifier and Type | Method and Description |
|---|---|
ChangesetDataSet |
parse()
Parses the content from the input source
|
ChangesetDataSet |
parse(ProgressMonitor progressMonitor)
Parses the content.
|
private final InputSource source
private final ChangesetDataSet data
public OsmChangesetContentParser(InputStream source)
OsmChangesetContentParser.source - the input stream with the changeset content as XML document. Must not be null.IllegalArgumentException - if source is null.public OsmChangesetContentParser(String source)
OsmChangesetContentParser.source - the input stream with the changeset content as XML document. Must not be null.IllegalArgumentException - if source is null.public ChangesetDataSet parse(ProgressMonitor progressMonitor) throws XmlParsingException
progressMonitor - the progress monitor. Set to NullProgressMonitor.INSTANCE if nullXmlParsingException - if something went wrong. Check for chained
exceptions.public ChangesetDataSet parse() throws XmlParsingException
XmlParsingException - if something went wrong. Check for chained
exceptions.