Sun SPOT API
Green Release  


com.sun.squawk.util
Class Find

java.lang.Object
  extended by com.sun.squawk.util.Find

public class Find
extends Object

This class provides a limited subset of the unix find utility.


Constructor Summary
Find()
           
 
Method Summary
static void find(java.io.File dir, String suffix, Vector results, boolean dirs)
          Find all the files or directories under a given directory recursively.
static void findAllClassesInPath(String path, Vector addTo)
          Find all the class files in a given path.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Find

public Find()
Method Detail

findAllClassesInPath

public static void findAllClassesInPath(String path,
                                        Vector addTo)
Find all the class files in a given path. Each entry in the path is a directory (given in Unix format i.e. '/' as separator) and each dir is separated by ':' or ';'.

Parameters:
addTo - The unique list of classes found are returned in this variable.

find

public static void find(java.io.File dir,
                        String suffix,
                        Vector results,
                        boolean dirs)
                 throws IOException
Find all the files or directories under a given directory recursively.

Parameters:
dir - the directory to search from
suffix - the suffix used to filter the results or null for no filtering
results - the Vector into which the found files should be put
Throws:
IOException

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.