org.glassfish.hk2.classmodel.reflect.util
Interface ResourceLocator


public interface ResourceLocator

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

Author:
Jerome Dochez

Method Summary
 URL getResource(String name)
          Retrieves the URL given a resource name
 InputStream openResourceStream(String name)
          Opens and input stream for the resources identified by the parameter name.
 

Method Detail

openResourceStream

InputStream openResourceStream(String name)
                               throws IOException
Opens and input stream for the resources identified by the parameter name.

Parameters:
name - the resource identification
Returns:
an input stream, or null if the name does not exist
Throws:
IOException - on i/o error

getResource

URL getResource(String name)
Retrieves the URL given a resource name

Parameters:
name -
Returns:
the resource URL, or null if not found


Copyright © 2013 Oracle Corporation. All Rights Reserved.