|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Resource
interface describes resources that may be
stored in a nests. Each resource is uniquely identified by
its string name.
Method Summary | |
String |
getAttribute(String name)
Returns the value associated to the specified attribute name, or null if there is no attribute with that name. |
long |
getContentLength()
Return the lenght of the content of the resource, if available; otherwise, it returns -1. |
InputStream |
getInputStream()
Return an input stream to download the contents of the resource. |
Object |
getKey()
Returns the key identifier of the object. |
String |
getName()
Returns the string identifier of the object. |
long |
size()
Return the space required to store the resource object. |
Method Detail |
public Object getKey()
public String getName()
public String getAttribute(String name)
name
- the name of the attributepublic InputStream getInputStream() throws IOException
IOException
public long getContentLength()
public long size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |