208209210211212213214215216217218219220221
return layerEl; } protected void addDataFile(OutputStream out) { Writer writer = new OutputStreamWriter(out, StandardCharsets.UTF_8); OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(writer), false, layer.data.getVersion()); layer.data.getReadLock().lock(); try { w.writeLayer(layer); w.flush(); } finally { layer.data.getReadLock().unlock(); } }
27282930313233
* The writer to send all data to. */ public XmlWriter(BufferedWriter writer) { super(writer); osmWriter = new OsmWriter("osm", 0, true, false); }
42434445464748
* Specifies the compression method to employ. */ public XmlWriter(File file, CompressionMethod compressionMethod) { super(file, compressionMethod); osmWriter = new OsmWriter("osm", 0, true, false); }
60616263646566
* instead of the correct {@literal <bounds>} one. */ public XmlWriter(File file, CompressionMethod compressionMethod, boolean legacyBound) { super(file, compressionMethod); osmWriter = new OsmWriter("osm", 0, true, legacyBound); }