edu.umd.cs.findbugs
Class URLClassPath.RemoteArchiveEntry

java.lang.Object
  extended by edu.umd.cs.findbugs.URLClassPath.RemoteArchiveEntry
All Implemented Interfaces:
URLClassPath.Entry
Enclosing class:
URLClassPath

private static class URLClassPath.RemoteArchiveEntry
extends java.lang.Object
implements URLClassPath.Entry

Classpath entry class to load files from a remote archive URL. It uses jar URLs to specify individual files within the remote archive.


Field Summary
private  java.net.URL remoteArchiveURL
           
 
Constructor Summary
URLClassPath.RemoteArchiveEntry(java.net.URL remoteArchiveURL)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remoteArchiveURL

private java.net.URL remoteArchiveURL
Constructor Detail

URLClassPath.RemoteArchiveEntry

public URLClassPath.RemoteArchiveEntry(java.net.URL remoteArchiveURL)
Constructor.

Parameters:
remoteArchiveURL - the remote zip/jar file URL
Method Detail

openStream

public java.io.InputStream openStream(java.lang.String resourceName)
                               throws java.io.IOException
Description copied from interface: URLClassPath.Entry
Open an input stream to read a resource in the codebase described by this classpath entry.

Specified by:
openStream in interface URLClassPath.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

public java.lang.String getURL()
Description copied from interface: URLClassPath.Entry
Get filename or URL as string.

Specified by:
getURL in interface URLClassPath.Entry