public class OsmHistoryReader extends java.lang.Object
OsmReader
because we don't build an internal graph of
OsmPrimitive
s. We use objects derived from
HistoryOsmPrimitive
instead and we keep the data in a dedicated HistoryDataSet
.Modifier and Type | Class and Description |
---|---|
private class |
OsmHistoryReader.Parser |
Modifier and Type | Field and Description |
---|---|
private HistoryDataSet |
data |
private java.io.InputStream |
in |
Constructor and Description |
---|
OsmHistoryReader(java.io.InputStream source)
Constructs a new
OsmHistoryReader . |
Modifier and Type | Method and Description |
---|---|
HistoryDataSet |
parse(ProgressMonitor progressMonitor)
Parses the content.
|
private final java.io.InputStream in
private final HistoryDataSet data
public OsmHistoryReader(java.io.InputStream source)
OsmHistoryReader
.source
- the input stream with the history content as XML document. Must not be null.java.lang.IllegalArgumentException
- if source is null
.public HistoryDataSet parse(ProgressMonitor progressMonitor) throws org.xml.sax.SAXException, java.io.IOException
progressMonitor
- the progress monitor. Set to NullProgressMonitor.INSTANCE
if nullorg.xml.sax.SAXException
- If any SAX errors occur during processing.java.io.IOException
- If any IO errors occur.