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

Method Index

 o clearDirectory(File)
Clear a directory (all files in it, but not the directory itself).
 o createFile(File)
Create a file.
 o find(String, String, boolean)
Find a file.
 o main(String[])
 o remove(File)
Remove a file or directory
 o remove(File, boolean)
Remove a file or a directory, synchronous or asynchronous.
 o remove(String)
Remove a file or directory.
 o remove(String, boolean)
Remove a file or director, synchronous or asynchronous.
 o renameFile(File, File)
Rename a file.
 o run()
Remove directories and files in the background.
 o setReadonly(File, boolean)
Sets a file to readonly (or not) depending on ON.
 o setSocketLinger(Socket, int)
 o touch(File)

Methods

 o remove
  public static boolean remove(String path)
Remove a file or directory.
 o remove
  public static boolean remove(File path)
Remove a file or directory
 o remove
  public static boolean remove(String path,
                               boolean background)
Remove a file or director, synchronous or asynchronous.
 o remove
  public static boolean remove(File f,
                               boolean background)
Remove a file or a directory, synchronous or asynchronous.
 o clearDirectory
  public static boolean clearDirectory(File d)
Clear a directory (all files in it, but not the directory itself).
 o find
  public static Vector find(String path,
                            String name,
                            boolean exact)
Find a file.
 o createFile
  public static FileOutputStream createFile(File file) throws IOException
Create a file. If the directory does not exist, create the parent directories.
 o renameFile
  public static boolean renameFile(File a,
                                   File b)
Rename a file.
 o touch
  public static boolean touch(File file)
 o setSocketLinger
  public static boolean setSocketLinger(Socket socket,
                                        int seconds)
 o setReadonly
  public static boolean setReadonly(File path,
                                    boolean on)
Sets a file to readonly (or not) depending on ON.
 o run
  public void run()
Remove directories and files in the background.
 o main
  public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index