Package edu.umd.cs.findbugs.ba
Interface URLClassPath.Entry
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
URLClassPath.LocalArchiveEntry,URLClassPath.LocalDirectoryEntry,URLClassPath.RemoteArchiveEntry,URLClassPath.RemoteDirectoryEntry
- Enclosing class:
- URLClassPath
private static interface URLClassPath.Entry extends java.lang.AutoCloseableInterface describing a single classpath entry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the underlying resource.java.lang.StringgetURL()Get filename or URL as string.java.io.InputStreamopenStream(java.lang.String resourceName)Open an input stream to read a resource in the codebase described by this classpath entry.
-
-
-
Method Detail
-
openStream
java.io.InputStream openStream(java.lang.String resourceName) throws java.io.IOExceptionOpen an input stream to read a resource in the codebase described by this classpath 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:
java.io.IOException- if an I/O error occurs
-
getURL
java.lang.String getURL()
Get filename or URL as string.
-
close
void close()
Close the underlying resource.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-