Method Summary |
|
protected synchronized void | connect() Ensure that we have a connection. |
public synchronized boolean | equals(Object another) Test whether an Object equals this URLResource.
Parameters: another - the other Object to compare. |
public synchronized InputStream | getInputStream() Get an InputStream for the Resource. |
public synchronized long | getLastModified() Tells the modification time in milliseconds since 01.01.1970 . |
public synchronized String | getName() Get the name of this URLResource
(its file component minus the leading separator). |
public synchronized OutputStream | getOutputStream() Get an OutputStream for the Resource. |
public synchronized long | getSize() Get the size of this Resource. |
public synchronized URL | getURL() Get the URL used by this URLResource. |
public synchronized int | hashCode() Get the hash code for this Resource. |
public synchronized boolean | isDirectory() Tells if the resource is a directory. |
public synchronized boolean | isExists() Find out whether the URL exists . |
public synchronized void | setFile(File f) Set the URL from a File. |
public synchronized void | setRefid(Reference r) Overrides the super version. |
public synchronized void | setURL(URL u) Set the URL for this URLResource. |
public synchronized String | toString() Return this URLResource formatted as a String. |