|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.file.FileUtils
A utility class for file based operations.
Method Summary | |
static void |
copyFile(java.io.File sourceFile,
java.io.File targetFile)
Copies the specified sourceFile to the specified targetFile. |
static FileReadOnlyHandler |
getFileReadOnlyHandler()
Returns the current FileReadOnlyHandler used by setFileReadOnly(). |
static void |
setFileReadOnly(java.io.File file,
boolean readOnly)
Sets the specified file read-only (readOnly == true) or writable (readOnly == false). |
static void |
setFileReadOnlyHandler(FileReadOnlyHandler fileReadOnlyHandler)
Sets the specified fileReadOnlyHandler to be used with setFileReadOnly(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FileReadOnlyHandler getFileReadOnlyHandler()
public static void setFileReadOnlyHandler(FileReadOnlyHandler fileReadOnlyHandler)
public static void setFileReadOnly(java.io.File file, boolean readOnly) throws java.io.IOException
java.io.IOException
- if the operation failedpublic static void copyFile(java.io.File sourceFile, java.io.File targetFile) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |