|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.FileUtil
public final class FileUtil
Helper methods for file objects
Field Summary | |
---|---|
static char |
FILE_ANTI_SEPERATOR
Field FILE_ANTI_SEPERATOR |
static char |
FILE_SEPERATOR
Field FILE_SEPERATOR |
static short |
LEVEL_FILE
Field LEVEL_FILE |
static short |
LEVEL_GRAND_PARENT_FILE
Field LEVEL_GRAND_PARENT_FILE |
static short |
LEVEL_PARENT_FILE
Field LEVEL_PARENT_FILE |
static short |
TYPE_DIR
Field TYPE_DIR |
static short |
TYPE_FILE
Field TYPE_FILE |
Constructor Summary | |
---|---|
FileUtil()
|
Method Summary | |
---|---|
static File |
toFile(File parent,
String path)
create a File from parent file and string |
static File |
toFile(String path)
create a file from path |
static File |
toFile(String parent,
String path)
create a File from parent file and string |
static String |
URIToFilename(String str)
Fixes a platform dependent filename to standard URI form. |
static File |
URLToFile(URL url)
translate a URL to a File Object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char FILE_SEPERATOR
FILE_SEPERATOR
public static final char FILE_ANTI_SEPERATOR
FILE_ANTI_SEPERATOR
public static final short TYPE_DIR
TYPE_DIR
public static final short TYPE_FILE
TYPE_FILE
public static final short LEVEL_FILE
LEVEL_FILE
public static final short LEVEL_PARENT_FILE
LEVEL_PARENT_FILE
public static final short LEVEL_GRAND_PARENT_FILE
LEVEL_GRAND_PARENT_FILE
Constructor Detail |
---|
public FileUtil()
Method Detail |
---|
public static File toFile(String path)
path
-
public static File toFile(File parent, String path)
parent
- path
-
public static File toFile(String parent, String path)
parent
- path
-
public static final File URLToFile(URL url) throws MalformedURLException
url
-
MalformedURLException
public static final String URIToFilename(String str)
str
- The string to fix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |