|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ants.jxtagnutant.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 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()
Resource
size in interface Resourcepublic Object getKey()
getKey in interface Resourcepublic boolean addURL(UrlResource url)
public Set getUrls()
public boolean equals(Object obj)
UrlResourceSet is equal to the specified object.
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
public void readExternal(ObjectInput in)
throws IOException
UrlResourceSet to the specified output stream.
readExternal in interface ExternalizableIOException
public void writeExternal(ObjectOutput out)
throws IOException
UrlResourceSet to the specified output stream.
writeExternal in interface ExternalizableIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||