Last change
on this file since 2702 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.
|
---|
2 | package org.openstreetmap.josm.io;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import java.io.File;
|
---|
7 | import java.io.FileInputStream;
|
---|
8 | import java.io.IOException;
|
---|
9 | import java.util.zip.GZIPInputStream;
|
---|
10 |
|
---|
11 | import org.openstreetmap.josm.actions.ExtensionFileFilter;
|
---|
12 |
|
---|
13 | public 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.