Package org.openstreetmap.josm.io
Class OsmWriterFactory
java.lang.Object
org.openstreetmap.josm.io.OsmWriterFactory
This factory is called by everyone who needs an OsmWriter object,
instead of directly calling the OsmWriter constructor.
This enables plugins to substitute the original OsmWriter with
their own version, altering the way JOSM writes objects to the
server, and to disk.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OsmWritercreateOsmWriter(PrintWriter out, boolean osmConform, String version) Creates newOsmWriter.protected OsmWritercreateOsmWriterImpl(PrintWriter out, boolean osmConform, String version) Creates newOsmWriter.static voidsetDefaultFactory(OsmWriterFactory factory) Sets the default factory.
-
Field Details
-
theFactory
-
-
Constructor Details
-
OsmWriterFactory
public OsmWriterFactory()
-
-
Method Details
-
createOsmWriter
Creates newOsmWriter.- Parameters:
out- print writerosmConform- iftrue, prevents modification attributes to be written to the common partversion- OSM API version (0.6)- Returns:
- new
OsmWriter
-
setDefaultFactory
Sets the default factory.- Parameters:
factory- new default factory- Since:
- 11851
-
createOsmWriterImpl
Creates newOsmWriter.- Parameters:
out- print writerosmConform- iftrue, prevents modification attributes to be written to the common partversion- OSM API version (0.6)- Returns:
- new
OsmWriter
-