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 @@
*
* <p>The given class must have a no-arg constructor and implement
* the [EMAIL PROTECTED] ZipExtraField ZipExtraField interface}.</p>
+ * @param c the class to register
*
* @since 1.1
*/
@@ -64,7 +65,10 @@
/**
* Create an instance of the approriate ExtraField, falls back to
* [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]