|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.melloware.jukes.file.FileUtil
public final class FileUtil
Static class of file utilities.
Copyright: Copyright (c) 2006 Company: Melloware, Inc.
| Field Summary | |
|---|---|
static String |
NIX_COMMAND
|
static String |
WINDOWS_COMMAND
|
| Method Summary | |
|---|---|
static String |
capitalize(String aStringToCapitalize)
Provides title casing for a string and a set of characters to always capitalize after like "(". |
static void |
checkValidFileName(String aFilename,
String message)
Checks a file name for invalid characters \\, /, :, , *, ?, ", <, >, or | |
static String |
correctFileName(String aFilename)
Corrects a file name for invalid characters. |
static Map |
deepCopy(Map src)
Deep copy of a Map. |
static boolean |
rename(String sOldname,
String sNewname)
Renames a file. |
static void |
setReadOnly(File aFile,
boolean flag)
Sets a file read only or not using the OS specific commands. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WINDOWS_COMMAND
public static final String NIX_COMMAND
| Method Detail |
|---|
public static void setReadOnly(File aFile,
boolean flag)
aFile - the file to set readonlyflag - true for readonly, false for writeablepublic static String capitalize(String aStringToCapitalize)
aStringToCapitalize - the string to capitalize
public static void checkValidFileName(String aFilename,
String message)
aFilename - the filename to checkpublic static String correctFileName(String aFilename)
aFilename - the filename to check
public static Map deepCopy(Map src)
src - the source Map
public static boolean rename(String sOldname,
String sNewname)
sOldname - The current (old) name of the file.sNewname - The new name of the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||