Top Description Constructors Methods
org.apache.tools.ant.types.resources

public Class JavaConstantResource

extends AbstractClasspathResource
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, java.lang.reflect.Field, java.nio.charset.StandardCharsets

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected InputStream

Returns:

an open input stream for the resource
openInputStream
(ClassLoader
the classloader to use. Will be null if the system classloader is used
cl
)

Implements abstract org.apache.tools.ant.types.resources.AbstractClasspathResource.openInputStream.

open the input stream from a specific classloader
Inherited from org.apache.tools.ant.types.resources.AbstractClasspathResource:
createClasspathdieOnCircularReferencegetClassLoadergetClasspathgetInputStreamgetLoadergetRefisExistssetClasspathsetClasspathRefsetLoaderRefsetParentFirstsetRefid

Constructor Detail

JavaConstantResourceback to summary
public JavaConstantResource()

Method Detail

openInputStreamback to summary
protected InputStream openInputStream(ClassLoader cl) throws IOException

Implements abstract org.apache.tools.ant.types.resources.AbstractClasspathResource.openInputStream.

open the input stream from a specific classloader

Parameters
cl:ClassLoader

the classloader to use. Will be null if the system classloader is used

Returns:InputStream

an open input stream for the resource

Annotations
@Override
Exceptions
IOException:
if an error occurs.