Last change
on this file since 5299 was 3083, checked in by bastiK, 14 years ago |
added svn:eol-style=native to source files
|
-
Property svn:eol-style
set to
native
|
File size:
826 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 | import org.openstreetmap.josm.gui.progress.ProgressMonitor;
|
---|
13 |
|
---|
14 | public class OsmGzipImporter extends OsmImporter {
|
---|
15 |
|
---|
16 | public OsmGzipImporter() {
|
---|
17 | super(new ExtensionFileFilter("osm.gz", "osm.gz", tr("OSM Server Files gzip compressed") + " (*.osm.gz)"));
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
|
---|
22 | GZIPInputStream in = new GZIPInputStream(new FileInputStream(file));
|
---|
23 | importData(in, file);
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.