|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.jdiskreport.domain.FileUtils
public final class FileUtils
Provides only static convenience behavior for Files.
Method Summary | |
---|---|
static String |
getCanonicalPath(File file)
Looks up and returns the canonical path for the given file. |
static boolean |
isLink(File file,
String itsCanonicalPath)
Checks and answers whether the file seems to be a link. |
static int |
linkLength(File file)
Guesses and returns the length of a link using the length of the file's canonical path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isLink(File file, String itsCanonicalPath)
This methods gets the file's canonical path, just because this can save a lot of time. Building the canonical path can be a heavy operation on some operating systems.
file
- the file to checkitsCanonicalPath
- the file's canonical path
public static int linkLength(File file)
file
- the file that represents the link
public static String getCanonicalPath(File file)
file
- the file to build the canonical path for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |