Last change
on this file since 5859 was 5859, checked in by akks, 11 years ago |
see #8274, #8601 : cancel now works while parsing OSM
|
-
Property svn:eol-style
set to
native
|
File size:
883 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 |
|
---|
10 | import org.openstreetmap.josm.actions.ExtensionFileFilter;
|
---|
11 | import org.openstreetmap.josm.gui.progress.ProgressMonitor;
|
---|
12 |
|
---|
13 | public class OsmBzip2Importer extends OsmImporter {
|
---|
14 |
|
---|
15 | public static final ExtensionFileFilter FILE_FILTER = new ExtensionFileFilter(
|
---|
16 | "osm.bz2,osm.bz", "osm.bz2", tr("OSM Server Files bzip2 compressed") + " (*.osm.bz2 *.osm.bz)");
|
---|
17 |
|
---|
18 | public OsmBzip2Importer() {
|
---|
19 | super(FILE_FILTER);
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
|
---|
24 | importData(getBZip2InputStream(new FileInputStream(file)), file, progressMonitor);
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.