public interface InputStreamLocator
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(java.lang.String name)
Create an input stream that reads data from the given named
resource.
|
long |
getSize(java.lang.String name)
Get the size in bytes of the given named resource.
|
java.io.InputStream getInputStream(java.lang.String name) throws java.io.IOException
name
- The name (for example a file name) of the resourcejava.io.IOException
- If there is any problem with locating or opening
the resourcelong getSize(java.lang.String name)
name
- The name (for example a file name) of the resouce