source: josm/trunk/src/org/openstreetmap/josm/io/OsmGzipImporter.java@ 2474

Last change on this file since 2474 was 2070, checked in by Gubaer, 15 years ago

new: rewrite of CombineWay action
new: conflict resolution dialog for CombineWay, including conflicts for different relation memberships
cleanup: cleanup in OsmReader, reduces memory footprint and reduces parsing time
cleanup: made most of the public fields in OsmPrimitive @deprecated, added accessors and changed the code
cleanup: replaced usages of @deprecated constructors for ExtendedDialog
fixed #3208: Combine ways brokes relation order

WARNING: this changeset touches a lot of code all over the code base. "latest" might become slightly unstable in the next days. Also experience incompatibility issues with plugins in the next few days.

File size: 733 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.io.File;
7import java.io.FileInputStream;
8import java.io.IOException;
9import java.util.zip.GZIPInputStream;
10
11import org.openstreetmap.josm.actions.ExtensionFileFilter;
12
13public class OsmGzipImporter extends OsmImporter {
14
15 public OsmGzipImporter() {
16 super(new ExtensionFileFilter("osm.gz", "osm.gz", tr("OSM Server Files gzip compressed") + " (*.osm.gz)"));
17 }
18
19 @Override
20 public void importData(File file) throws IOException, IllegalDataException {
21 GZIPInputStream in = new GZIPInputStream(new FileInputStream(file));
22 importData(in, file);
23 }
24}
Note: See TracBrowser for help on using the repository browser.