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 JarVisitorpublic Filter[] getFilters()
getFilters in interface JarVisitorpublic Set[] getMatchingEntries() throws IOException
getMatchingEntries in interface JarVisitorIOException - if something went wrongprotected abstract void doProcessElements()
throws IOException
IOExceptionprotected final void addElement(String entryName, InputStream is, InputStream secondIs) throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.