< prev index next >

src/java.base/share/classes/java/util/jar/Pack200.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

*** 1,7 **** /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 552,562 **** * Takes a JarFile and converts it into a Pack200 archive. * <p> * Closes its input but not its output. (Pack200 archives are appendable.) * @param in a JarFile * @param out an OutputStream ! * @exception IOException if an error is encountered. */ void pack(JarFile in, OutputStream out) throws IOException ; /** * Takes a JarInputStream and converts it into a Pack200 archive. --- 552,562 ---- * Takes a JarFile and converts it into a Pack200 archive. * <p> * Closes its input but not its output. (Pack200 archives are appendable.) * @param in a JarFile * @param out an OutputStream ! * @throws IOException if an error is encountered. */ void pack(JarFile in, OutputStream out) throws IOException ; /** * Takes a JarInputStream and converts it into a Pack200 archive.
*** 568,578 **** * * @see #MODIFICATION_TIME * @see #DEFLATE_HINT * @param in a JarInputStream * @param out an OutputStream ! * @exception IOException if an error is encountered. */ void pack(JarInputStream in, OutputStream out) throws IOException ; } /** --- 568,578 ---- * * @see #MODIFICATION_TIME * @see #DEFLATE_HINT * @param in a JarInputStream * @param out an OutputStream ! * @throws IOException if an error is encountered. */ void pack(JarInputStream in, OutputStream out) throws IOException ; } /**
*** 671,692 **** * method described below. * <p> * Closes its input but not its output. (The output can accumulate more elements.) * @param in an InputStream. * @param out a JarOutputStream. ! * @exception IOException if an error is encountered. */ void unpack(InputStream in, JarOutputStream out) throws IOException; /** * Read a Pack200 archive, and write the encoded JAR to * a JarOutputStream. * <p> * Does not close its output. (The output can accumulate more elements.) * @param in a File. * @param out a JarOutputStream. ! * @exception IOException if an error is encountered. */ void unpack(File in, JarOutputStream out) throws IOException; } // Private stuff.... --- 671,692 ---- * method described below. * <p> * Closes its input but not its output. (The output can accumulate more elements.) * @param in an InputStream. * @param out a JarOutputStream. ! * @throws IOException if an error is encountered. */ void unpack(InputStream in, JarOutputStream out) throws IOException; /** * Read a Pack200 archive, and write the encoded JAR to * a JarOutputStream. * <p> * Does not close its output. (The output can accumulate more elements.) * @param in a File. * @param out a JarOutputStream. ! * @throws IOException if an error is encountered. */ void unpack(File in, JarOutputStream out) throws IOException; } // Private stuff....
< prev index next >