public class OsmChangeReader extends OsmReader
AbstractReader.CommonReader, AbstractReader.NodeReader, AbstractReader.ParserWorker, AbstractReader.RelationReader, AbstractReader.WayReader| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
ACTIONS
List of possible actions.
|
protected NoteData |
noteData |
convertUnknownToTags, parsercancel, ds, externalIdMap, relations, uploadChangeset, ways| Modifier | Constructor and Description |
|---|---|
protected |
OsmChangeReader()
constructor (for private and subclasses use only)
|
| Modifier and Type | Method and Description |
|---|---|
NoteData |
getNoteData()
Replies the parsed notes data.
|
private void |
parseCommon(java.lang.String action) |
static DataSet |
parseDataSet(java.io.InputStream source,
ProgressMonitor progressMonitor)
Parse the given input source and return the dataset.
|
static Pair<DataSet,NoteData> |
parseDataSetAndNotes(java.io.InputStream source,
ProgressMonitor progressMonitor)
Parse the given input source and return the dataset and notes, if any (OsmAnd extends the osmChange format by adding notes).
|
private void |
parseNote() |
private void |
parseOsmChange() |
protected void |
parseRoot() |
doParseDataSet, jumpToEnd, jumpToEnd, parse, parseDataSet, parseNode, parseRelation, parseUnknown, parseUnknown, parseWay, setParser, throwException, throwException, throwExceptionbuildPrimitive, callPostProcessors, deregisterPostprocessor, doParseDataSet, getDataSet, getLong, parseAction, parseBounds, parseChangeset, parseChangeset, parseDownloadPolicy, parseId, parseLocked, parseNode, parseNode, parseRelation, parseRelationMember, parseRelationMember, parseTag, parseTimestamp, parseUploadPolicy, parseUser, parseUser, parseVersion, parseVersion, parseVersion, parseVisible, parseWay, prepareDataSet, processChangesetAfterParsing, processNodesAfterParsing, processRelationsAfterParsing, processWaysAfterParsing, registerPostprocessorprivate static final java.lang.String[] ACTIONS
protected OsmChangeReader()
protected void parseRoot() throws javax.xml.stream.XMLStreamException
private void parseOsmChange() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprivate void parseCommon(java.lang.String action) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprivate void parseNote() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic final NoteData getNoteData()
public static DataSet parseDataSet(java.io.InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException
source - the source input stream. Must not be null.progressMonitor - the progress monitor. If null,
NullProgressMonitor.INSTANCE is assumedIllegalDataException - if the an error was found while parsing the data from the sourcejava.lang.IllegalArgumentException - if source is nullpublic static Pair<DataSet,NoteData> parseDataSetAndNotes(java.io.InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException
source - the source input stream. Must not be null.progressMonitor - the progress monitor. If null,
NullProgressMonitor.INSTANCE is assumedIllegalDataException - if the an error was found while parsing the data from the sourcejava.lang.IllegalArgumentException - if source is null