Top Description Methods
org.glassfish.hk2.classmodel.reflect.util

public Interface ResourceLocator

Known Direct Implementers
org.glassfish.hk2.classmodel.reflect.util.CommonModelRegistry
Imports
java.io.IOException, .InputStream, java.net.URL

Interface to load .class files as resources for processing by the parser.
Author
Jerome Dochez

Method Summary

Modifier and TypeMethod and Description
public URL

Returns:

the resource URL, or null if not found
getResource
(String name)

Retrieves the URL given a resource name

public InputStream

Returns:

an input stream, or null if the name does not exist
openResourceStream
(String
the resource identification
name
)

Opens and input stream for the resources identified by the parameter name.

Method Detail

getResourceback to summary
public URL getResource(String name)

Retrieves the URL given a resource name

Returns:URL

the resource URL, or null if not found

openResourceStreamback to summary
public InputStream openResourceStream(String name) throws IOException

Opens and input stream for the resources identified by the parameter name.

Parameters
name:String

the resource identification

Returns:InputStream

an input stream, or null if the name does not exist

Exceptions
IOException:
on i/o error