Package org.zkoss.zats.mimic
Interface Resource
-
public interface ResourceThe Resource interface. It provides some information about a resource and the input stream of it.- Since:
- 1.1.0
- Author:
- pao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetInputStream()Open and return a input stream for the resource.StringgetName()The resource name.
-
-
-
Method Detail
-
getName
String getName()
The resource name.- Returns:
- name string.
-
getInputStream
InputStream getInputStream() throws IOException
Open and return a input stream for the resource. The caller have to close the input-stream after the using of it.- Returns:
- the input stream
- Throws:
IOException
-
-