org.hibernate.ejb.packaging
Class AbstractJarVisitor
java.lang.Object
   org.hibernate.ejb.packaging.AbstractJarVisitor
org.hibernate.ejb.packaging.AbstractJarVisitor
- All Implemented Interfaces: 
- JarVisitor
- Direct Known Subclasses: 
- ExplodedJarVisitor, FileZippedJarVisitor, InputStreamZippedJarVisitor
- public abstract class AbstractJarVisitor 
- extends Object- implements JarVisitor
Parse a JAR of any form (zip file, exploded directory, ...)
 apply a set of filters (File filter, Class filter, Package filter)
 and return the appropriate matching sets of elements
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
unqualifiedJarName
protected String unqualifiedJarName
jarUrl
protected URL jarUrl
done
protected boolean done
AbstractJarVisitor
protected AbstractJarVisitor(String fileName,
                             Filter[] filters)
AbstractJarVisitor
protected AbstractJarVisitor(URL url,
                             Filter[] filters)
unqualify
protected void unqualify()
- 
 
- 
 
getUnqualifiedJarName
public String getUnqualifiedJarName()
- Get the unqualified Jar name (ie wo path and wo extension)
 
- 
- Specified by:
- getUnqualifiedJarNamein interface- JarVisitor
 
- 
- Returns:
- the unqualified jar name.
 
getFilters
public Filter[] getFilters()
- 
- Specified by:
- getFiltersin interface- JarVisitor
 
- 
 
getMatchingEntries
public Set[] getMatchingEntries()
                         throws IOException
- Return the matching entries for each filter in the same order the filter where passed
 
- 
- Specified by:
- getMatchingEntriesin interface- JarVisitor
 
- 
- Returns:
- array of Set of JarVisitor.Entry
- Throws:
- IOException- if something went wrong
 
doProcessElements
protected abstract void doProcessElements()
                                   throws IOException
- 
 
- 
- Throws:
- IOException
 
addElement
protected final void addElement(String entryName,
                                InputStream is,
                                InputStream secondIs)
                         throws IOException
- 
 
- 
- Throws:
- IOException
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.