|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputStreamLocator
Defines a generic interface for opening an input stream from a named resource. Implementations should know how to access a given resource and create a stream that reads data from the resource.
Method Summary | |
---|---|
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. |
Method Detail |
---|
InputStream getInputStream(String name) throws IOException
name
- The name (for example a file name) of the resource
IOException
- 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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |