Last change
on this file since 3734 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:
808 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.FileNotFoundException;
|
---|
8 | import java.io.FileOutputStream;
|
---|
9 | import java.io.IOException;
|
---|
10 | import java.io.OutputStream;
|
---|
11 | import java.util.zip.GZIPOutputStream;
|
---|
12 |
|
---|
13 | import org.openstreetmap.josm.actions.ExtensionFileFilter;
|
---|
14 | public class OsmGzipExporter extends OsmExporter {
|
---|
15 |
|
---|
16 | public OsmGzipExporter() {
|
---|
17 | super(new ExtensionFileFilter("osm.gz", "osm.gz", tr("OSM Server Files gzip compressed") + " (*.osm.gz)"));
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | protected OutputStream getOutputStream(File file) throws FileNotFoundException, IOException {
|
---|
22 | OutputStream out = new FileOutputStream(file);
|
---|
23 | return new GZIPOutputStream(out);
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.