Package org.openstreetmap.josm.io
Provides the classes for JOSM input/output support.
-
Interface Summary Interface Description AbstractReader.BinaryParserWorker An interface for reading binary dataAbstractReader.CommonReader AbstractReader.NodeReader AbstractReader.ParserWorker AbstractReader.RelationReader AbstractReader.WayReader IGpxReader Abstraction ofGpxReader
,NmeaReader
,OziWptReader
andRtkLibPosReader
ImportCancelException All exceptions resulting from a user cancellation during any import should implement this interface.MessageNotifier.NotifierCallback Called when new new messages are detected.OsmApi.OsmApiInitializationListener OSM API initialization listener.OsmConnection.OAuthAccessTokenFetcher Retrieves OAuth access token.OsmServerReader.DomParser<R> DOM document parser.OsmServerReadPostprocessor Interface for plugins to process osm data after it has been downloaded or read from file.OsmServerWritePostprocessor Interface for plugins to process osm data after it has been uploaded to the OSM server.UrlPattern Download URL pattern. -
Class Summary Class Description AbstractParser Base class ofOsmChangesetContentParser
andOsmHistoryReader
internal parsers.AbstractReader Abstract Reader, allowing other implementations than OsmReader (PbfReader in PBF plugin for example)BoundingBoxDownloader Read content from OSM server for a given bounding boxCacheCustomContent<T extends java.lang.Throwable> Use this class if you want to cache and store a single file that gets updated regularly.CachedFile Downloads a file and caches it on disk in order to reduce network load.Capabilities Represents the OSM API server capabilities.Capabilities.CapabilitiesParser A parser for the "capabilities" response XML.CertificateAmendment Class to add missing root certificates to the list of trusted certificates for TLS connections.CertificateAmendment.CertAmend A certificate amendment.CertificateAmendment.EmbeddedCertAmend An embedded certificate amendment.CertificateAmendment.NativeCertAmend A certificate amendment relying on native platform certificate store.ChangesetQuery Data class to collect restrictions (parameters) for downloading changesets from the OSM API.ChangesetQuery.ChangesetQueryUrlParser Changeset query URL parser.ChangesetUpdater Checks periodically if open changesets have been closed on server side.ChangesetUpdater.Worker DefaultProxySelector This is the default proxy selector used in JOSM.DiffResultProcessor Helper class to process the OSM API server response to a "diff" upload.DiffResultProcessor.DiffResultEntry FileWatcher Background thread that monitors certain files and perform relevant actions when they change.FileWatcher.InstanceHolder GeoJSONMapRouletteWriter ConvertTestError
to MapRoulette TasksGeoJSONReader Reader that reads GeoJSON files.GeoJSONServerReader GeoJson server reader.GeoJSONWriter Writes OSM data as a GeoJSON string, using JSR 353: Java API for JSON Processing (JSON-P).GpxParser A parser for gpx filesGpxReader Read a gpx file.GpxWriter Writes GPX files from GPX data or OSM data.InvalidXmlCharacterFilter FilterInputStream that gets rid of characters that are invalid in an XML 1.0 document.MessageNotifier Notifies user periodically of new received (unread) messagesMessageNotifier.Worker MultiFetchOverpassObjectReader Retrieves a set ofOsmPrimitive
s from an Overpass API server.MultiFetchServerObjectReader Retrieves a set ofOsmPrimitive
s from an OSM server using the so called Multi Fetch API.MultiFetchServerObjectReader.FetchResult The class holding the results given byMultiFetchServerObjectReader.Fetcher
.NameFinder Search for names and related items.NameFinder.NameFinderResultParser A very primitive parser for the name finder's output.NameFinder.SearchResult Data storage for search results.NetworkManager Handles global network features (errors and online/offline resources).NoteReader Class to read Note objects from their XML representation.NoteWriter Class to write a collection of notes out to XML.OsmApi Class that encapsulates the communications with the OSM API.
All interaction with the server-side OSM API should go through this class.
It is conceivable to extract this into an interface later and create various classes implementing the interface, to be able to talk to various kinds of servers.OsmChangeBuilder Creates an OsmChange document from JOSM edits.OsmChangeReader Reader for OsmChange file format.OsmChangesetContentParser Parser for OSM changeset content.OsmChangesetParser Parser for a list of changesets, encapsulated in an OSM data set structure.OsmConnection Base class that handles common things like authentication for the reader and writer to the osm server.OsmHistoryReader Parser for OSM history data.OsmJsonReader Parser for the Osm API (JSON output).OsmPbfReader Read OSM data from an OSM PBF fileOsmPbfReader.BoundedInputStream This could be replaced byBoundedInputStream
from Apache Commons IO.OsmPbfReader.PrimitiveBlockRecord A record class for passing PrimitiveBlock information to the PrimitiveGroup parserOsmReader Parser for the Osm API (XML output).OsmServerBackreferenceReader OsmServerBackreferenceReader fetches the primitives from the OSM server which refer to a specific primitive.OsmServerChangesetReader Reads the history of anOsmPrimitive
from the OSM API server.OsmServerHistoryReader Reads the history of anOsmPrimitive
from the OSM API server.OsmServerLocationReader Read content from OSM server for a given URLOsmServerLocationReader.Parser<T> OsmServerObjectReader OsmServerObjectReader reads an individual object from the OSM server.OsmServerReader This DataReader reads directly from the REST API of the osm server.OsmServerUserInfoReader Download and parse info of the logged in user (OSM API v0.6 "/user/details").OsmServerUserPreferencesReader Download and parse preferences of the logged in user (OSM API v0.6 "/user/preferences").OsmServerWriter Class that uploads all changes to the osm server.OsmWriter Save the dataset into a stream as osm intern xml format.OsmWriterFactory This factory is called by everyone who needs an OsmWriter object, instead of directly calling the OsmWriter constructor.OverpassDownloadReader Read content from an Overpass server.OverpassDownloadReader.OverpassOsmJsonReader OverpassDownloadReader.OverpassOsmReader ProgressInputStream Read from an other reader and increment an progress counter while on the way.ProgressOutputStream AnOutputStream
which reports progress to theProgressMonitor
.StreamProgressUpdater Helper class forStreamProgressUpdater
to encapsulate interaction with theProgressMonitor
.UploadStrategySpecification An UploadStrategySpecification consists of the parameter describing the strategy for uploading a collection ofOsmPrimitive
.UrlPatterns Collection ofUrlPattern
s.UTFInputStreamReader Detects the different UTF encodings from byte order mark.ValidatorErrorWriter Class to write a collection of validator errors out to XML.ValidatorErrorWriter.ErrorClass XmlWriter Helper class to use for xml outputting classes. -
Enum Summary Enum Description CachedFile.CachingStrategy Caching strategy.ChangesetClosedException.Source Identifies when the changeset exception occurred.Compression An enum representing the compression type of a resource.GeoJSONWriter.Options GpxParser.State MaxChangesetSizeExceededPolicy This determines what to do when the max changeset size was exceeded by a upload.NoteReader.NoteParseMode Notes can be represented in two XML formats.OnlineResource Online resources directly used by JOSM.OsmReader.Options Options are used to change how the xml data is parsed.OverpassDownloadReader.OverpassOutputFormat Possible Overpass API output format, with the[out:<directive>]
statement.ProxyPolicy The proxy policy is how JOSM will use proxy information.UploadStrategy The chunk mode to use when uploadingUrlPatterns.GeoJsonUrlPattern Patterns for Geojson download URLs.UrlPatterns.GpxUrlPattern Patterns for GPX download URLs.UrlPatterns.NoteUrlPattern Patterns for Note download URLs.UrlPatterns.OsmChangeUrlPattern Patterns for OsmChange data download URLs.UrlPatterns.OsmUrlPattern Patterns for OSM data download URLs. -
Exception Summary Exception Description BoundingBoxDownloader.MoreNotesException Indicates that the number of fetched notes equals the specified limit.ChangesetClosedException A ChangesetClosedException is thrown if the server replies with a HTTP return code 409 (Conflict) with the error headerChangesetClosedException.ERROR_HEADER_PATTERN
.ChangesetQuery.ChangesetQueryUrlException Exception thrown for invalid changeset queries.IllegalDataException Generic exception raised when illegal data is read.MissingOAuthAccessTokenException Exception thrown when a valid OAuth access token was expected, but not found.OfflineAccessException Exception thrown when an online resource is accessed while in offline mode.OsmApiException Exception thrown when a communication error occurs when accessing the OSM API.OsmApiInitializationException Exception thrown when a communication error occurred with the OSM server during API initialization.OsmApiPrimitiveGoneException Represents an exception thrown by the OSM API if JOSM tries to update or delete a primitive which is already deleted on the server.OsmReader.OsmParsingCanceledException Exception thrown after user cancellation.OsmTransferCanceledException Exception thrown when a communication with the OSM server has been cancelled by the user.OsmTransferException Exception thrown when a communication error with the OSM server occurs.XmlStreamParsingException Exception for unexpected processing errors during XML stream parsing.