com.alee.utils.reflection
Class JarStructure

java.lang.Object
  extended by com.alee.utils.reflection.JarStructure

public class JarStructure
extends java.lang.Object

User: mgarin Date: 02.03.12 Time: 15:58


Field Summary
static JarEntryComparator COMPARATOR
           
 
Constructor Summary
JarStructure(JarEntry root)
           
 
Method Summary
 JarEntry findEntryByName(java.lang.String name)
           
 java.util.List<JarEntry> findSimilarEntries(java.lang.String name)
           
 java.util.List<JarEntry> findSimilarEntries(java.lang.String name, Filter<JarEntry> filter)
           
 java.util.List<JarEntry> getChildEntries(JarEntry entry)
           
 JarEntry getClassEntry(java.lang.Class forClass)
           
 java.io.InputStream getEntryInputStream(JarEntry entry)
           
 java.lang.String getJarLocation()
           
 JarEntry getRoot()
           
 void setClassIcon(java.lang.Class classType, javax.swing.ImageIcon icon)
           
 void setJarLocation(java.lang.String jarLocation)
           
 void setPackageIcon(java.lang.Package packageType, javax.swing.ImageIcon icon)
           
 void setPackageIcon(java.lang.String packageName, javax.swing.ImageIcon icon)
           
 void setRoot(JarEntry root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARATOR

public static final JarEntryComparator COMPARATOR
Constructor Detail

JarStructure

public JarStructure(JarEntry root)
Method Detail

getJarLocation

public java.lang.String getJarLocation()

setJarLocation

public void setJarLocation(java.lang.String jarLocation)

getRoot

public JarEntry getRoot()

setRoot

public void setRoot(JarEntry root)

getChildEntries

public java.util.List<JarEntry> getChildEntries(JarEntry entry)

findEntryByName

public JarEntry findEntryByName(java.lang.String name)

findSimilarEntries

public java.util.List<JarEntry> findSimilarEntries(java.lang.String name)

findSimilarEntries

public java.util.List<JarEntry> findSimilarEntries(java.lang.String name,
                                                   Filter<JarEntry> filter)

getClassEntry

public JarEntry getClassEntry(java.lang.Class forClass)

setPackageIcon

public void setPackageIcon(java.lang.Package packageType,
                           javax.swing.ImageIcon icon)

setPackageIcon

public void setPackageIcon(java.lang.String packageName,
                           javax.swing.ImageIcon icon)

setClassIcon

public void setClassIcon(java.lang.Class classType,
                         javax.swing.ImageIcon icon)

getEntryInputStream

public java.io.InputStream getEntryInputStream(JarEntry entry)
                                        throws java.io.IOException
Throws:
java.io.IOException