public class OsmHistoryReader extends Object
OsmReader because we don't build an internal graph of
OsmPrimitives. 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 InputStream |
in |
| Constructor and Description |
|---|
OsmHistoryReader(InputStream source)
Constructs a new
OsmHistoryReader. |
| Modifier and Type | Method and Description |
|---|---|
HistoryDataSet |
parse(ProgressMonitor progressMonitor)
Parses the content.
|
private final InputStream in
private final HistoryDataSet data
public OsmHistoryReader(InputStream source)
OsmHistoryReader.source - the input stream with the history content as XML document. Must not be null.IllegalArgumentException - if source is null.public HistoryDataSet parse(ProgressMonitor progressMonitor) throws SAXException, IOException
progressMonitor - the progress monitor. Set to NullProgressMonitor.INSTANCE if nullSAXException - If any SAX errors occur during processing.IOException - If any IO errors occur.