Method Summary |
|
public int | compareTo(Object another) Compare this FileResource to another Resource.
Parameters: another - the other Resource against which to compare. |
public boolean | equals(Object another) Compare another Object to this FileResource for equality.
Parameters: another - the other Object to compare. |
public File | getBaseDir() Return the basedir to which the name is relative. |
public File | getFile() Get the file represented by this FileResource. |
public InputStream | getInputStream() Return an InputStream for reading the contents of this Resource. |
public long | getLastModified() Get the modification time in milliseconds since 01.01.1970 . |
public String | getName() Get the name of this FileResource. |
protected File | getNotNullFile() Get the file represented by this FileResource, ensuring it is not null. |
public OutputStream | getOutputStream() Get an OutputStream for the Resource. |
public long | getSize() Get the size of this Resource. |
public int | hashCode() Get the hash code for this Resource. |
public boolean | isDirectory() Learn whether the resource is a directory. |
public boolean | isExists() Learn whether this file exists. |
public boolean | isFilesystemOnly() Fulfill the ResourceCollection contract. |
public void | setBaseDir(File b) Set the basedir for this FileResource. |
public void | setFile(File f) Set the File for this FileResource. |
public void | setRefid(Reference r) Overrides the super version. |
public String | toString() Get the string representation of this Resource. |
public void | touch(long modTime) Implement the Touchable interface. |