org.codehaus.jam.provider
Class ResourcePath
java.lang.Object
org.codehaus.jam.provider.ResourcePath
public class ResourcePath
- extends java.lang.Object
Represent a file search path, such as a classpath or sourcepath.
- Author:
- Patrick Calahan <email: pcal-at-bea-dot-com>
Method Summary |
java.io.InputStream |
findInPath(java.lang.String resource)
|
static ResourcePath |
forFiles(java.io.File[] files)
|
java.lang.String |
toString()
Returns the path as a single string in which each file component is
separates by File.pathSeparatorChar. |
java.net.URI[] |
toUriPath()
|
java.net.URL[] |
toUrlPath()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
forFiles
public static ResourcePath forFiles(java.io.File[] files)
toUriPath
public java.net.URI[] toUriPath()
toUrlPath
public java.net.URL[] toUrlPath()
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
findInPath
public java.io.InputStream findInPath(java.lang.String resource)
toString
public java.lang.String toString()
- Returns the path as a single string in which each file component is
separates by File.pathSeparatorChar.
- Overrides:
toString
in class java.lang.Object