src/java.base/share/classes/java/util/jar/Manifest.java
changeset 58242 94bb65cb37d3
parent 53293 64049c8e7452
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
   193      * Writes the Manifest to the specified OutputStream.
   193      * Writes the Manifest to the specified OutputStream.
   194      * Attributes.Name.MANIFEST_VERSION must be set in
   194      * Attributes.Name.MANIFEST_VERSION must be set in
   195      * MainAttributes prior to invoking this method.
   195      * MainAttributes prior to invoking this method.
   196      *
   196      *
   197      * @param out the output stream
   197      * @param out the output stream
   198      * @exception IOException if an I/O error has occurred
   198      * @throws    IOException if an I/O error has occurred
   199      * @see #getMainAttributes
   199      * @see #getMainAttributes
   200      */
   200      */
   201     public void write(OutputStream out) throws IOException {
   201     public void write(OutputStream out) throws IOException {
   202         DataOutputStream dos = new DataOutputStream(out);
   202         DataOutputStream dos = new DataOutputStream(out);
   203         // Write out the main attributes for the manifest
   203         // Write out the main attributes for the manifest
   274      * Reads the Manifest from the specified InputStream. The entry
   274      * Reads the Manifest from the specified InputStream. The entry
   275      * names and attributes read will be merged in with the current
   275      * names and attributes read will be merged in with the current
   276      * manifest entries.
   276      * manifest entries.
   277      *
   277      *
   278      * @param is the input stream
   278      * @param is the input stream
   279      * @exception IOException if an I/O error has occurred
   279      * @throws    IOException if an I/O error has occurred
   280      */
   280      */
   281     public void read(InputStream is) throws IOException {
   281     public void read(InputStream is) throws IOException {
   282         read(is, null);
   282         read(is, null);
   283     }
   283     }
   284 
   284