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