Package edu.umd.cs.findbugs.ba
Class URLClassPath.RemoteDirectoryEntry
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.URLClassPath.RemoteDirectoryEntry
-
- All Implemented Interfaces:
URLClassPath.Entry
,java.lang.AutoCloseable
- Enclosing class:
- URLClassPath
private static class URLClassPath.RemoteDirectoryEntry extends java.lang.Object implements URLClassPath.Entry
Classpath entry class to load files from a remote directory URL.
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.URL
remoteDirURL
-
Constructor Summary
Constructors Constructor Description RemoteDirectoryEntry(java.net.URL remoteDirURL)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the underlying resource.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
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 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:
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 interfaceURLClassPath.Entry
-
close
public void close()
Description copied from interface:URLClassPath.Entry
Close the underlying resource.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceURLClassPath.Entry
-
-