|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public java.lang.String getSupportedLoadingScheme()
public 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
public byte[] getResourceBytes(java.lang.String resource)
throws java.io.IOException
java.io.IOException
public 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 | ||||||||||