Changeset 13173 in josm for trunk/src/org/openstreetmap/josm/tools/Utils.java
- Timestamp:
- 2017-11-28T00:56:29+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r12987 r13173 59 59 import java.util.regex.Pattern; 60 60 import java.util.stream.Stream; 61 import java.util.zip.GZIPInputStream;62 61 import java.util.zip.ZipFile; 63 import java.util.zip.ZipInputStream;64 62 65 63 import javax.xml.XMLConstants; … … 70 68 import javax.xml.parsers.SAXParserFactory; 71 69 72 import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;73 import org.openstreetmap.josm.io.Compression;74 70 import org.openstreetmap.josm.spi.preferences.Config; 75 71 import org.w3c.dom.Document; … … 721 717 } 722 718 }; 723 }724 725 /**726 * Returns a Bzip2 input stream wrapping given input stream.727 * @param in The raw input stream728 * @return a Bzip2 input stream wrapping given input stream, or {@code null} if {@code in} is {@code null}729 * @throws IOException if the given input stream does not contain valid BZ2 header730 * @since 7867731 * @deprecated use {@link Compression#getBZip2InputStream(java.io.InputStream)}732 */733 @Deprecated734 public static BZip2CompressorInputStream getBZip2InputStream(InputStream in) throws IOException {735 return Compression.getBZip2InputStream(in);736 }737 738 /**739 * Returns a Gzip input stream wrapping given input stream.740 * @param in The raw input stream741 * @return a Gzip input stream wrapping given input stream, or {@code null} if {@code in} is {@code null}742 * @throws IOException if an I/O error has occurred743 * @since 7119744 * @deprecated use {@link Compression#getGZipInputStream(java.io.InputStream)}745 */746 @Deprecated747 public static GZIPInputStream getGZipInputStream(InputStream in) throws IOException {748 return Compression.getGZipInputStream(in);749 }750 751 /**752 * Returns a Zip input stream wrapping given input stream.753 * @param in The raw input stream754 * @return a Zip input stream wrapping given input stream, or {@code null} if {@code in} is {@code null}755 * @throws IOException if an I/O error has occurred756 * @since 7119757 * @deprecated use {@link Compression#getZipInputStream(java.io.InputStream)}758 */759 @Deprecated760 public static ZipInputStream getZipInputStream(InputStream in) throws IOException {761 return Compression.getZipInputStream(in);762 719 } 763 720
Note:
See TracChangeset
for help on using the changeset viewer.