org.apache.tools.ant.types.resources
public class JavaResource extends AbstractClasspathResource implements URLProvider
Since: Ant 1.7
Constructor Summary | |
---|---|
JavaResource()
Default constructor. | |
JavaResource(String name, Path path)
Construct a new JavaResource using the specified name and
classpath.
|
Method Summary | |
---|---|
int | compareTo(Object another)
Compare this JavaResource to another Resource. |
URL | getURL()
Get the URL represented by this Resource. |
protected InputStream | openInputStream(ClassLoader cl)
open the input stream from a specific classloader |
Parameters: name the resource name. path the classpath.
Parameters: another the other Resource against which to compare.
Returns: a negative integer, zero, or a positive integer as this JavaResource is less than, equal to, or greater than the specified Resource.
Since: Ant 1.8.0
Parameters: cl the classloader to use. Will be null if the system classloader is used
Returns: an open input stream for the resource
Throws: IOException if an error occurs.