Package com.jme3.util.res
Interface ResourceLoader
public interface ResourceLoader
- 
Method SummaryModifier and TypeMethodDescriptiongetResource(String path, Class<?> parent) Finds the resource with the given name relative to the given parent class or to the root if the parent is null.getResourceAsStream(String path, Class<?> parent) Finds the resource with the given name relative to the given parent class or to the root if the parent is null.getResources(String path) Finds all resources with the given name.
- 
Method Details- 
getResourceFinds the resource with the given name relative to the given parent class or to the root if the parent is null.- Parameters:
- path- The resource name
- parent- Optional parent class
- Returns:
- The resource URL or null if not found
 
- 
getResourceAsStreamFinds the resource with the given name relative to the given parent class or to the root if the parent is null.- Parameters:
- path- The resource name
- parent- Optional parent class
- Returns:
- An input stream to the resource or null if not found
 
- 
getResourcesFinds all resources with the given name.- Parameters:
- path- The resource name
- Returns:
- An enumeration of URL
- Throws:
- IOException- If I/O errors occur
- IOException
 
 
-