|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.types.SimpleURLResource
Constructor Summary | |
SimpleURLResource(String url,
DocumentId id)
Constructs a new SimpleURLResource identified by the
specified stringified URL and by the given document ID. |
|
SimpleURLResource(URL url,
DocumentId id)
Constructs a new SimpleURLResource identified by the
specified URL . |
Method Summary | |
boolean |
equals(Object obj)
Check whether this SimpleURLResource is equal to the specified object. |
String |
getAttribute(String name)
Not supported. |
long |
getContentLength()
Returns the lenght of the content of the resource, if available. |
String |
getFile()
Returns the file part of this URL. |
InputStream |
getInputStream()
Return an input stream to download the contents of the resource. |
Object |
getKey()
Returns the document key for this Url resource as the key. |
String |
getName()
Returns the string identifier of the object. |
String |
getURL()
Returns the stringified url for this Url resource. |
int |
hashCode()
Returns a hash code value for the object. |
long |
size()
Returns the space needed to store the resource, if available. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleURLResource(URL url, DocumentId id)
SimpleURLResource
identified by the
specified URL
.
url
- url from which the resource may be downloadedid
- the document identifier associated to this resourcepublic SimpleURLResource(String url, DocumentId id)
SimpleURLResource
identified by the
specified stringified URL and by the given document ID.
url
- url from which the resource may be downloadedid
- the document identifier associated to this resourceMethod Detail |
public String getName()
getName
in interface Resource
public String getAttribute(String name)
getAttribute
in interface Resource
name
- the name of the attributepublic InputStream getInputStream() throws IOException
getInputStream
in interface Resource
IOException
public long getContentLength()
getContentLength
in interface Resource
public long size()
size
in interface Resource
public Object getKey()
getKey
in interface Resource
public String getURL()
getURL
in interface URLResource
public String getFile()
getFile
in interface URLResource
public boolean equals(Object obj)
SimpleURLResource
is equal to the specified object.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |