Last change
on this file since 6365 was 5361, checked in by Don-vip, 12 years ago |
fix #7879 - Allow to open local and remote gzipped/bzipped osmChange files + remote osm.gz files + make some public constants of File filters to share between same importers/exporters
|
-
Property svn:eol-style
set to
native
|
File size:
623 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.io;
|
---|
3 |
|
---|
4 | import java.io.File;
|
---|
5 | import java.io.FileNotFoundException;
|
---|
6 | import java.io.FileOutputStream;
|
---|
7 | import java.io.IOException;
|
---|
8 | import java.io.OutputStream;
|
---|
9 | import java.util.zip.GZIPOutputStream;
|
---|
10 | public class OsmGzipExporter extends OsmExporter {
|
---|
11 |
|
---|
12 | public OsmGzipExporter() {
|
---|
13 | super(OsmGzipImporter.FILE_FILTER);
|
---|
14 | }
|
---|
15 |
|
---|
16 | @Override
|
---|
17 | protected OutputStream getOutputStream(File file) throws FileNotFoundException, IOException {
|
---|
18 | OutputStream out = new FileOutputStream(file);
|
---|
19 | return new GZIPOutputStream(out);
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.