| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceFinderInterface
This interface defines services for publicly load resource files.
 The JDK12ClassFileFinder class implements this
 interface emulating the Java 2 system class loader behaviour.
| Method Summary | |
|---|---|
|  java.io.File | findResourceFile(java.lang.String resource)Find a resource in the filesystem. | 
|  byte[] | getResourceBytes(java.lang.String resource)Return a byte array with the bytes for the resource, or null if the resource cannot be found. | 
|  java.lang.String | getSupportedLoadingScheme()Returns the supported loading scheme | 
|  java.io.InputStream | openResource(java.lang.String resource)Return the stream associated to a resource in the filesystem, or null if such resource cannot be found. | 
| Method Detail | 
|---|
java.lang.String getSupportedLoadingScheme()
java.io.File findResourceFile(java.lang.String resource)
                              throws java.io.IOException
resource - the resource path
java.io.IOException - if a problem arises accessing the resource
byte[] getResourceBytes(java.lang.String resource)
                        throws java.io.IOException
resource - the resource name
java.io.IOException - if a problem arises accessing the resource
java.io.InputStream openResource(java.lang.String resource)
                                 throws java.io.IOException
The returned stream is not buffered.
resource - the resource path
java.io.IOException - if a problem arises accessing the resource| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||