Ignore:
Timestamp:
2017-11-28T00:56:29+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15310 - remove most of deprecated APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r12987 r13173  
    5959import java.util.regex.Pattern;
    6060import java.util.stream.Stream;
    61 import java.util.zip.GZIPInputStream;
    6261import java.util.zip.ZipFile;
    63 import java.util.zip.ZipInputStream;
    6462
    6563import javax.xml.XMLConstants;
     
    7068import javax.xml.parsers.SAXParserFactory;
    7169
    72 import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
    73 import org.openstreetmap.josm.io.Compression;
    7470import org.openstreetmap.josm.spi.preferences.Config;
    7571import org.w3c.dom.Document;
     
    721717            }
    722718        };
    723     }
    724 
    725     /**
    726      * Returns a Bzip2 input stream wrapping given input stream.
    727      * @param in The raw input stream
    728      * @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 header
    730      * @since 7867
    731      * @deprecated use {@link Compression#getBZip2InputStream(java.io.InputStream)}
    732      */
    733     @Deprecated
    734     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 stream
    741      * @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 occurred
    743      * @since 7119
    744      * @deprecated use {@link Compression#getGZipInputStream(java.io.InputStream)}
    745      */
    746     @Deprecated
    747     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 stream
    754      * @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 occurred
    756      * @since 7119
    757      * @deprecated use {@link Compression#getZipInputStream(java.io.InputStream)}
    758      */
    759     @Deprecated
    760     public static ZipInputStream getZipInputStream(InputStream in) throws IOException {
    761         return Compression.getZipInputStream(in);
    762719    }
    763720
Note: See TracChangeset for help on using the changeset viewer.