edu.umd.cs.findbugs
Interface URLClassPath.Entry

All Known Implementing Classes:
URLClassPath.LocalArchiveEntry, URLClassPath.LocalDirectoryEntry, URLClassPath.RemoteArchiveEntry, URLClassPath.RemoteDirectoryEntry
Enclosing class:
URLClassPath

private static interface URLClassPath.Entry

Interface describing a single classpath entry.


Method Summary
 java.lang.String getURL()
          Get filename or URL as string.
 java.io.InputStream openStream(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.IOException
Open 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.