Class URLClassPath.LocalArchiveEntry
java.lang.Object
edu.umd.cs.findbugs.ba.URLClassPath.LocalArchiveEntry
- All Implemented Interfaces:
URLClassPath.Entry, AutoCloseable
- Enclosing class:
URLClassPath
Classpath entry class to load files from a zip/jar file in the local
filesystem.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the underlying resource.getURL()Get filename or URL as string.openStream(String resourceName) Open an input stream to read a resource in the codebase described by this classpath entry.
-
Field Details
-
zipFile
-
-
Constructor Details
-
LocalArchiveEntry
- Throws:
IOException
-
-
Method Details
-
openStream
Description copied from interface:URLClassPath.EntryOpen an input stream to read a resource in the codebase described by this classpath entry.- Specified by:
openStreamin interfaceURLClassPath.Entry- Parameters:
resourceName- name of resource to load: e.g., "java/lang/Object.class"- Returns:
- an InputStream, or null if the resource wasn't found
- Throws:
IOException- if an I/O error occurs
-
getURL
Description copied from interface:URLClassPath.EntryGet filename or URL as string.- Specified by:
getURLin interfaceURLClassPath.Entry
-
close
public void close()Description copied from interface:URLClassPath.EntryClose the underlying resource.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceURLClassPath.Entry
-