Class JarFactory
java.lang.Object
org.apache.tomcat.util.scan.JarFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic URLgetJarEntryURL(URL baseUrl, String entryName) Get a JAR entry URL for the given base URL and entry name.static JarnewInstance(URL url) Create a newJarinstance for the given URL.
-
Method Details
-
newInstance
Create a newJarinstance for the given URL.- Parameters:
url- the URL of the JAR file- Returns:
- the new Jar instance
- Throws:
IOException- if an I/O error occurs
-
getJarEntryURL
Get a JAR entry URL for the given base URL and entry name.- Parameters:
baseUrl- the base URL of the JARentryName- the name of the entry- Returns:
- the URL for the JAR entry
- Throws:
MalformedURLException- if an I/O error occurs
-