org.apache.tools.ant.types.resources

Class JavaConstantResource

public class JavaConstantResource extends AbstractClasspathResource

A resource that is a java constant. This lets you extract values off the classpath and use them elsewhere

Since: Ant 1.7

Method Summary
protected InputStreamopenInputStream(ClassLoader cl)
open the input stream from a specific classloader

Method Detail

openInputStream

protected InputStream openInputStream(ClassLoader cl)
open the input stream from a specific classloader

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.