src/share/classes/java/util/zip/ZipInputStream.java

Print this page
rev 4099 : 7041612: Rename StandardCharset to StandardCharsets
Reviewed-by: alanb, mr, darcy

*** 28,38 **** import java.io.InputStream; import java.io.IOException; import java.io.EOFException; import java.io.PushbackInputStream; import java.nio.charset.Charset; ! import java.nio.charset.StandardCharset; import static java.util.zip.ZipConstants64.*; /** * This class implements an input stream filter for reading files in the * ZIP file format. Includes support for both compressed and uncompressed --- 28,38 ---- import java.io.InputStream; import java.io.IOException; import java.io.EOFException; import java.io.PushbackInputStream; import java.nio.charset.Charset; ! import java.nio.charset.StandardCharsets; import static java.util.zip.ZipConstants64.*; /** * This class implements an input stream filter for reading files in the * ZIP file format. Includes support for both compressed and uncompressed
*** 74,84 **** * decode the entry names. * * @param in the actual input stream */ public ZipInputStream(InputStream in) { ! this(in, StandardCharset.UTF_8); } /** * Creates a new ZIP input stream. * --- 74,84 ---- * decode the entry names. * * @param in the actual input stream */ public ZipInputStream(InputStream in) { ! this(in, StandardCharsets.UTF_8); } /** * Creates a new ZIP input stream. *