source: josm/trunk/src/org/openstreetmap/josm/io/OsmGzipExporter.java @ 5241

Revision 3083, 808 bytes checked in by bastiK, 2 years ago (diff)

added svn:eol-style=native to source files

  • Property svn:eol-style set to native
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.FileNotFoundException;
8import java.io.FileOutputStream;
9import java.io.IOException;
10import java.io.OutputStream;
11import java.util.zip.GZIPOutputStream;
12
13import org.openstreetmap.josm.actions.ExtensionFileFilter;
14public 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.