Package org.openstreetmap.josm.io
package org.openstreetmap.josm.io
Provides the classes for JOSM input/output support.
-
ClassDescriptionBase class of
OsmChangesetContentParserandOsmHistoryReaderinternal parsers.Abstract Reader, allowing other implementations than OsmReader (PbfReader in PBF plugin for example)An interface for reading binary dataRead content from OSM server for a given bounding boxIndicates that the number of fetched notes equals the specified limit.CacheCustomContent<T extends Throwable>Use this class if you want to cache and store a single file that gets updated regularly.Downloads a file and caches it on disk in order to reduce network load.Caching strategy.Represents the OSM API server capabilities.A parser for the "capabilities" response XML.Class to add missing root certificates to the list of trusted certificates for TLS connections.A certificate amendment.An embedded certificate amendment.A certificate amendment relying on native platform certificate store.A ChangesetClosedException is thrown if the server replies with a HTTP return code 409 (Conflict) with the error headerChangesetClosedException.ERROR_HEADER_PATTERN.Identifies when the changeset exception occurred.Data class to collect restrictions (parameters) for downloading changesets from the OSM API.Exception thrown for invalid changeset queries.Changeset query URL parser.Checks periodically if open changesets have been closed on server side.An enum representing the compression type of a resource.This is the default proxy selector used in JOSM.Helper class to process the OSM API server response to a "diff" upload.Background thread that monitors certain files and perform relevant actions when they change.ConvertTestErrorto MapRoulette TasksReader that reads GeoJSON files.GeoJson server reader.Writes OSM data as a GeoJSON string, using JSR 353: Java API for JSON Processing (JSON-P).A parser for gpx filesRead a gpx file.Writes GPX files from GPX data or OSM data.Abstraction ofGpxReader,NmeaReader,OziWptReaderandRtkLibPosReaderGeneric exception raised when illegal data is read.All exceptions resulting from a user cancellation during any import should implement this interface.FilterInputStream that gets rid of characters that are invalid in an XML 1.0 document.This determines what to do when the max changeset size was exceeded by a upload.Notifies user periodically of new received (unread) messagesCalled when new new messages are detected.Exception thrown when a valid OAuth access token was expected, but not found.Retrieves a set ofOsmPrimitives from an Overpass API server.Retrieves a set ofOsmPrimitives from an OSM server using the so called Multi Fetch API.The class holding the results given byMultiFetchServerObjectReader.Fetcher.Search for names and related items.A very primitive parser for the name finder's output.Data storage for search results.Handles global network features (errors and online/offline resources).Class to read Note objects from their XML representation.Notes can be represented in two XML formats.Class to write a collection of notes out to XML.Exception thrown when an online resource is accessed while in offline mode.Online resources directly used by JOSM.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.OSM API initialization listener.Exception thrown when a communication error occurs when accessing the OSM API.Exception thrown when a communication error occurred with the OSM server during API initialization.Represents an exception thrown by the OSM API if JOSM tries to update or delete a primitive which is already deleted on the server.Creates an OsmChange document from JOSM edits.Reader for OsmChange file format.Parser for OSM changeset content.Parser for a list of changesets, encapsulated in an OSM data set structure.Base class that handles common things like authentication for the reader and writer to the osm server.Parser for OSM history data.Parser for the Osm API (JSON output).Read OSM data from an OSM PBF fileThis could be replaced byBoundedInputStreamfrom Apache Commons IO.A record class for passing PrimitiveBlock information to the PrimitiveGroup parserParser for the Osm API (XML output).Options are used to change how the xml data is parsed.Exception thrown after user cancellation.OsmServerBackreferenceReader fetches the primitives from the OSM server which refer to a specific primitive.Reads the history of anOsmPrimitivefrom the OSM API server.Reads the history of anOsmPrimitivefrom the OSM API server.Read content from OSM server for a given URLOsmServerObjectReader reads an individual object from the OSM server.This DataReader reads directly from the REST API of the osm server.DOM document parser.Interface for plugins to process osm data after it has been downloaded or read from file.Download and parse info of the logged in user (OSM API v0.6 "/user/details").Download and parse preferences of the logged in user (OSM API v0.6 "/user/preferences").Interface for plugins to process osm data after it has been uploaded to the OSM server.Class that uploads all changes to the osm server.Exception thrown when a communication with the OSM server has been cancelled by the user.Exception thrown when a communication error with the OSM server occurs.Save the dataset into a stream as osm intern xml format.This factory is called by everyone who needs an OsmWriter object, instead of directly calling the OsmWriter constructor.Read content from an Overpass server.Possible Overpass API output format, with the[out:<directive>]statement.Read from an other reader and increment an progress counter while on the way.AnOutputStreamwhich reports progress to theProgressMonitor.The proxy policy is how JOSM will use proxy information.Helper class forStreamProgressUpdaterto encapsulate interaction with theProgressMonitor.The chunk mode to use when uploadingAn UploadStrategySpecification consists of the parameter describing the strategy for uploading a collection ofOsmPrimitive.Download URL pattern.Collection ofUrlPatterns.Patterns for Geojson download URLs.Patterns for GPX download URLs.Patterns for Note download URLs.Patterns for OsmChange data download URLs.Patterns for OSM data download URLs.Detects the different UTF encodings from byte order mark.Class to write a collection of validator errors out to XML.Exception for unexpected processing errors during XML stream parsing.Helper class to use for xml outputting classes.