|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.File
se.datadosen.io.LinkFile
public class LinkFile
Link (shortcut) support for JAlbum. A LinkFile represents a link to a file. It is a subclass of java.io.File. All methods on java.io.File but the getName(), renameTo(), compareTo, equals, hashCode and toString methods will operate on the target file (the file that the LinkFile links to). Use getTargetName() to get the name of the target file itself. Use getLink() to retrieve a File representing the link itself (which usually doesn't exists physically in the file system and usually doesn't have the same parent file as its target - It's parent is the album parent.)
| Field Summary | |
|---|---|
protected java.io.File |
link
|
protected java.io.File |
target
|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
LinkFile(java.io.File parent,
java.lang.String name,
java.io.File target)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.io.File other)
|
boolean |
equals(java.lang.Object obj)
|
java.io.File |
getLink()
|
java.lang.String |
getName()
|
java.io.File |
getTarget()
|
java.lang.String |
getTargetName()
|
int |
hashCode()
|
boolean |
renameTargetTo(java.io.File dest)
|
boolean |
renameTo(java.io.File dest)
Simply return true. |
java.lang.String |
toString()
|
| Methods inherited from class java.io.File |
|---|
canExecute, canRead, canWrite, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.io.File link
protected java.io.File target
| Constructor Detail |
|---|
public LinkFile(java.io.File parent,
java.lang.String name,
java.io.File target)
| Method Detail |
|---|
public java.lang.String getName()
getName in class java.io.Filepublic java.lang.String getTargetName()
public int compareTo(java.io.File other)
compareTo in interface java.lang.Comparable<java.io.File>compareTo in class java.io.Filepublic int hashCode()
hashCode in class java.io.Filepublic boolean equals(java.lang.Object obj)
equals in class java.io.Filepublic boolean renameTo(java.io.File dest)
renameTo in class java.io.Filepublic boolean renameTargetTo(java.io.File dest)
public java.io.File getLink()
public java.io.File getTarget()
public java.lang.String toString()
toString in class java.io.File
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||