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