Class.getResourceAsStream
Class Overview | Class Members |
This Package |
All Packages
public InputStream getResourceAsStream( String name )
Description
Find a resource with a given name. Will return null if no
resource with this name is found. The rules for searching a
resources associated with a given class are implemented by the
ClassLoader of the class.
The Class methods delegate to ClassLoader methods, after applying
a naming convention: if the resource name starts with "/", it is used
as is. Otherwise, the name of the package is prepended, after
converting "." to "/".
See Also
ClassLoader