|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.FileUtil
public final class FileUtil
File utilities
Method Summary | |
---|---|
static String |
compactPath(String path)
Compacts a path by stacking it and reducing .. |
static File |
createTempFile(String prefix,
String suffix)
|
static File |
createTempFile(String prefix,
String suffix,
File parentDir)
|
static boolean |
deleteFile(File file)
|
static boolean |
isAbsolute(File file)
Is the given file an absolute file. |
static boolean |
isWindows()
|
static String |
normalizePath(String path)
Normalizes the path to cater for Windows and other platforms |
static String |
onlyPath(String name)
Returns only the leading path (returns null if no path) |
static boolean |
renameFile(File from,
File to)
|
static String |
stripExt(String name)
|
static String |
stripLeadingSeparator(String name)
Strip any leading separators |
static String |
stripPath(String name)
Strips any leading paths |
static String |
stripTrailingSeparator(String name)
Strip any trailing separators |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String normalizePath(String path)
public static boolean isWindows()
public static File createTempFile(String prefix, String suffix) throws IOException
IOException
public static File createTempFile(String prefix, String suffix, File parentDir) throws IOException
IOException
public static String stripLeadingSeparator(String name)
public static String stripTrailingSeparator(String name)
public static String stripPath(String name)
public static String stripExt(String name)
public static String onlyPath(String name)
public static String compactPath(String path)
public static boolean renameFile(File from, File to)
public static boolean deleteFile(File file)
public static boolean isAbsolute(File file)
file
- the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |