|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.gnutant.UrlResourceSet
Constructor Summary | |
UrlResourceSet()
Default constructor for externalization. |
Method Summary | |
boolean |
addURL(UrlResource url)
|
boolean |
equals(Object obj)
Check whether this UrlResourceSet is equal to the specified object. |
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. |
InputStream |
getInputStream()
Return an input stream to download the contents of the resource. |
Object |
getKey()
Return the document identifier for this Url resource as the key. |
String |
getName()
Returns the string identifier of the object. |
Set |
getUrls()
|
int |
hashCode()
Returns a hash code value for the object. |
void |
readExternal(ObjectInput in)
Marshals this UrlResourceSet to the specified output stream. |
long |
size()
Return the space required to store the resource object. |
String |
toString()
Returns a string representation of the object. |
void |
writeExternal(ObjectOutput out)
Marshals this UrlResourceSet to the specified output stream. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UrlResourceSet()
Method 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()
Resource
size
in interface Resource
public Object getKey()
getKey
in interface Resource
public boolean addURL(UrlResource url)
public Set getUrls()
public boolean equals(Object obj)
UrlResourceSet
is equal to the specified object.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void readExternal(ObjectInput in) throws IOException
UrlResourceSet
to the specified output stream.
readExternal
in interface Externalizable
IOException
public void writeExternal(ObjectOutput out) throws IOException
UrlResourceSet
to the specified output stream.
writeExternal
in interface Externalizable
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |