|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.antnet.FileResource
FileResource
represents a local file resource that can be
added by a an anthill clients.
Method Summary | |
java.lang.String |
getAttribute(java.lang.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. |
java.io.InputStream |
getInputStream()
Return an input stream to download the contents of the resource. |
java.lang.Object |
getKey()
Returns the key identifier of the object. |
java.lang.String |
getName()
Returns the string identifier of the object. |
long |
size()
Return the space required to store the resource object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.Object getKey()
getKey
in interface Resource
public java.lang.String getName()
getName
in interface Resource
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface Resource
name
- the name of the attributepublic java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface Resource
public long getContentLength()
getContentLength
in interface Resource
public long size()
Resource
size
in interface Resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |