home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-20 | 1.7 KB | 60 lines |
- /*
- * @(#)JarEntry.java 1.7 98/03/18
- *
- * Copyright 1997, 1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.util.jar;
-
- import java.util.zip.ZipEntry;
- import java.security.Identity;
-
- /**
- * This class is used to represent a JAR file entry.
- */
- public
- class JarEntry extends ZipEntry {
- Attributes attr;
- Identity[] ids;
-
- /**
- * Creates a new <code>JarEntry</code> for the specified JAR file
- * entry name.
- *
- * @param the JAR file entry name
- * @exception NullPointerException if the entry name is <code>null</code>
- * @exception IllegalArgumentException if the entry name is longer than
- * 0xFFFF bytes.
- */
- public JarEntry(String name) {
- super(name);
- }
-
- /**
- * Returns the <code>Manifest</code> <code>Attributes</code> for this
- * entry, or <code>null</code> if none.
- */
- public Attributes getAttributes() {
- return attr;
- }
-
- /**
- * Returns the <code>Identity</code> objects for this entry, or
- * <code>null</code> if none. This method can only be called once
- * the <code>JarEntry</code> has been completely verified by reading
- * from the entry input stream until the end of the stream has been
- * reached. Otherwise, this method will return <code>null</code>
- */
- public Identity[] getIdentities() {
- return ids;
- }
- }
-