|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.File
wicket.util.file.File
Simple extension of File that adds an implementation of IModifiable for files. This allows the ModificationWatcher class to watch files for modification. The IModifiable.lastModifiedTime() method also returns a Time object with a more convenient API than either Date or a value in milliseconds.
| Field Summary |
| Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
File(File parent,
java.lang.String child)
Constructor. |
|
File(java.lang.String pathname)
Constructor. |
|
File(java.lang.String parent,
java.lang.String child)
Constructor. |
|
File(java.net.URI uri)
Constructor. |
|
| Method Summary | |
Time |
lastModifiedTime()
Returns a Time object representing the most recent time this file was modified. |
void |
remove()
|
void |
writeTo(java.io.InputStream input)
Writes the given input stream to this file |
| Methods inherited from class java.io.File |
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public File(java.lang.String pathname)
pathname - path name
public File(java.lang.String parent,
java.lang.String child)
parent - parentchild - child
public File(File parent,
java.lang.String child)
parent - parentchild - childpublic File(java.net.URI uri)
uri - file uri| Method Detail |
public final Time lastModifiedTime()
lastModifiedTime in interface IModifiablepublic final void remove()
File.delete()
public final void writeTo(java.io.InputStream input)
throws java.io.IOException
input - The input
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||