org.openstreetmap.josm.io
Class OsmChangesetParser

java.lang.Object
  extended by org.openstreetmap.josm.io.OsmChangesetParser

public class OsmChangesetParser
extends java.lang.Object

Parser for a list of changesets, encapsulated in an OSM data set structure. Example:

 <osm version="0.6" generator="OpenStreetMap server">
     <changeset id="143" user="guggis" uid="1" created_at="2009-09-08T20:35:39Z" closed_at="2009-09-08T21:36:12Z" open="false" min_lon="7.380925" min_lat="46.9215164" max_lon="7.3984718" max_lat="46.9226502">
         <tag k="asdfasdf" v="asdfasdf"/>
         <tag k="created_by" v="JOSM/1.5 (UNKNOWN de)"/>
         <tag k="comment" v="1234"/>
     </changeset>
 </osm>
 


Nested Class Summary
private  class OsmChangesetParser.Parser
           
 
Field Summary
private  java.util.List<Changeset> changesets
           
 
Constructor Summary
private OsmChangesetParser()
           
 
Method Summary
 java.util.List<Changeset> getChangesets()
           
static java.util.List<Changeset> parse(java.io.InputStream source, ProgressMonitor progressMonitor)
          Parse the given input source and return the list of changesets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changesets

private java.util.List<Changeset> changesets
Constructor Detail

OsmChangesetParser

private OsmChangesetParser()
Method Detail

getChangesets

public java.util.List<Changeset> getChangesets()

parse

public static java.util.List<Changeset> parse(java.io.InputStream source,
                                              ProgressMonitor progressMonitor)
                                       throws IllegalDataException
Parse the given input source and return the list of changesets

Parameters:
source - the source input stream
progressMonitor - the progress monitor
Returns:
the list of changesets
Throws:
IllegalDataException - thrown if the an error was found while parsing the data from the source


JOSM