public abstract class AbstractJarVisitor extends Object implements JarVisitor
Modifier and Type | Field and Description |
---|---|
protected boolean |
done |
protected URL |
jarUrl |
protected String |
unqualifiedJarName |
Modifier | Constructor and Description |
---|---|
protected |
AbstractJarVisitor(String fileName,
Filter[] filters) |
protected |
AbstractJarVisitor(URL url,
Filter[] filters) |
Modifier and Type | Method and Description |
---|---|
protected void |
addElement(String entryName,
InputStream is,
InputStream secondIs) |
protected abstract void |
doProcessElements() |
Filter[] |
getFilters() |
Set[] |
getMatchingEntries()
Return the matching entries for each filter in the same order the filter where passed
|
String |
getUnqualifiedJarName()
Get the unqualified Jar name (ie wo path and wo extension)
|
protected void |
unqualify() |
protected String unqualifiedJarName
protected URL jarUrl
protected boolean done
protected void unqualify()
public String getUnqualifiedJarName()
getUnqualifiedJarName
in interface JarVisitor
public Filter[] getFilters()
getFilters
in interface JarVisitor
public Set[] getMatchingEntries() throws IOException
getMatchingEntries
in interface JarVisitor
IOException
- if something went wrongprotected abstract void doProcessElements() throws IOException
IOException
protected final void addElement(String entryName, InputStream is, InputStream secondIs) throws IOException
IOException
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.