org.jboss.portal.common.jar
Class JarEntryInfo
java.lang.Object
org.jboss.portal.common.jar.JarEntryInfo
- All Implemented Interfaces:
- java.lang.Comparable
public class JarEntryInfo
- extends java.lang.Object
- implements java.lang.Comparable
Enhance jar entry object by adding more info.
- Version:
- $Revision: 7448 $
- Author:
- Julien Viet
Constructor Summary |
JarEntryInfo(java.util.jar.JarEntry entry)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JarEntryInfo
public JarEntryInfo(java.util.jar.JarEntry entry)
getEntry
public java.util.jar.JarEntry getEntry()
isDirectory
public boolean isDirectory()
size
public int size()
getNames
public java.util.List getNames()
getName
public java.lang.String getName(int index)
isChildOf
public boolean isChildOf(JarEntryInfo parent)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
isDescendantOf
public boolean isDescendantOf(JarEntryInfo ancestor)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
toURL
public java.net.URL toURL(java.net.URL jarURL)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
java.net.MalformedURLException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
java.net.MalformedURLException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable