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 InputSource source
private final ChangesetDataSet data
public OsmChangesetContentParser(InputStream source) throws UnsupportedEncodingException
OsmChangesetContentParser
.source
- the input stream with the changeset content as XML document. Must not be null.UnsupportedEncodingException
- if UTF-8
charset is missingIllegalArgumentException
- 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 OsmDataParsingException
progressMonitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if nullOsmDataParsingException
- thrown if something went wrong. Check for chained
exceptions.public ChangesetDataSet parse() throws OsmDataParsingException
OsmDataParsingException
- thrown if something went wrong. Check for chained
exceptions.