Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 64085 invoked from network); 7 Jan 2005 13:16:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jan 2005 13:16:48 -0000 Received: (qmail 22016 invoked by uid 500); 7 Jan 2005 13:16:46 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 21790 invoked by uid 500); 7 Jan 2005 13:16:44 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 21772 invoked by uid 500); 7 Jan 2005 13:16:44 -0000 Received: (qmail 21768 invoked by uid 99); 7 Jan 2005 13:16:44 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 07 Jan 2005 05:16:44 -0800 Received: (qmail 64040 invoked by uid 1539); 7 Jan 2005 13:16:43 -0000 Date: 7 Jan 2005 13:16:43 -0000 Message-ID: <20050107131643.64039.qmail@minotaur.apache.org> From: peterreilly@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/zip ExtraFieldUtils.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N peterreilly 2005/01/07 05:16:43 Modified: src/main/org/apache/tools/zip ExtraFieldUtils.java Log: javadoc Revision Changes Path 1.10 +14 -6 ant/src/main/org/apache/tools/zip/ExtraFieldUtils.java Index: ExtraFieldUtils.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/zip/ExtraFieldUtils.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- ExtraFieldUtils.java 9 Mar 2004 16:48:55 -0000 1.9 +++ ExtraFieldUtils.java 7 Jan 2005 13:16:43 -0000 1.10 @@ -1,5 +1,5 @@ /* - * Copyright 2001-2002,2004 The Apache Software Foundation + * Copyright 2001-2002,2004-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,6 +45,7 @@ * *

The given class must have a no-arg constructor and implement * the {@link ZipExtraField ZipExtraField interface}.

+ * @param c the class to register * * @since 1.1 */ @@ -64,7 +65,10 @@ /** * Create an instance of the approriate ExtraField, falls back to * {@link UnrecognizedExtraField UnrecognizedExtraField}. - * + * @param headerId the header identifier + * @return an instance of the appropiate ExtraField + * @exception InstantiationException if unable to instantiate the class + * @exception IllegalAccessException if not allowed to instatiate the class * @since 1.1 */ public static ZipExtraField createExtraField(ZipShort headerId) @@ -81,8 +85,10 @@ /** * Split the array into ExtraFields and populate them with the * give data. - * + * @param byte an array of bytes + * @return an array of ExtraFields * @since 1.1 + * @throws ZipException on error */ public static ZipExtraField[] parse(byte[] data) throws ZipException { Vector v = new Vector(); @@ -117,7 +123,8 @@ /** * Merges the local file data fields of the given ZipExtraFields. - * + * @param data an array of ExtraFiles + * @return an array of bytes * @since 1.1 */ public static byte[] mergeLocalFileDataData(ZipExtraField[] data) { @@ -141,7 +148,8 @@ /** * Merges the central directory fields of the given ZipExtraFields. - * + * @param data an array of ExtraFields + * @return an array of bytes * @since 1.1 */ public static byte[] mergeCentralDirectoryData(ZipExtraField[] data) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org