|
|||||||||||
| 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 resource
public 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 resource| Method Detail |
public String getName()
getName in interface Resourcepublic String getAttribute(String name)
getAttribute in interface Resourcename - the name of the attribute
public InputStream getInputStream()
throws IOException
getInputStream in interface ResourceIOExceptionpublic long getContentLength()
getContentLength in interface Resourcepublic long size()
size in interface Resourcepublic Object getKey()
getKey in interface Resourcepublic String getURL()
getURL in interface URLResourcepublic String getFile()
getFile in interface URLResourcepublic boolean equals(Object obj)
SimpleURLResource is equal to the specified object.
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||