Class marimba.desktop.FileSystem
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.desktop.FileSystem
java.lang.Object
|
+----marimba.desktop.FileSystem
- public class FileSystem
- extends Object
- implements Runnable
File system utillities. This class provides some minor
functionality that is missing from java.io.
- Version:
- 1.38, 12/16/96
- Author:
- Jonathan Payne
-
clearDirectory(File)
- Clear a directory (all files in it, but not the directory
itself).
-
createFile(File)
- Create a file.
-
find(String, String, boolean)
- Find a file.
-
main(String[])
-
-
remove(File)
- Remove a file or directory
-
remove(File, boolean)
- Remove a file or a directory, synchronous or asynchronous.
-
remove(String)
- Remove a file or directory.
-
remove(String, boolean)
- Remove a file or director, synchronous or asynchronous.
-
renameFile(File, File)
- Rename a file.
-
run()
- Remove directories and files in the background.
-
setReadonly(File, boolean)
- Sets a file to readonly (or not) depending on ON.
-
setSocketLinger(Socket, int)
-
-
touch(File)
-
remove
public static boolean remove(String path)
- Remove a file or directory.
remove
public static boolean remove(File path)
- Remove a file or directory
remove
public static boolean remove(String path,
boolean background)
- Remove a file or director, synchronous or asynchronous.
remove
public static boolean remove(File f,
boolean background)
- Remove a file or a directory, synchronous or asynchronous.
clearDirectory
public static boolean clearDirectory(File d)
- Clear a directory (all files in it, but not the directory
itself).
find
public static Vector find(String path,
String name,
boolean exact)
- Find a file.
createFile
public static FileOutputStream createFile(File file) throws IOException
- Create a file. If the directory does not exist, create the parent directories.
renameFile
public static boolean renameFile(File a,
File b)
- Rename a file.
touch
public static boolean touch(File file)
setSocketLinger
public static boolean setSocketLinger(Socket socket,
int seconds)
setReadonly
public static boolean setReadonly(File path,
boolean on)
- Sets a file to readonly (or not) depending on ON.
run
public void run()
- Remove directories and files in the background.
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index