wt.util
Class ResourceLister

java.lang.Object
  extended by wt.util.ResourceLister

public class ResourceLister
extends Object

A utility to list resource files found in the local class path. It only list files found in directories, not .zip or .jar files.

Supported API: true
Extendable: false


Method Summary
static String[] list()
          List all resource files appearing in root directories in the class path.
static String[] list(FilenameFilter filter)
          List all resource files that appear in root directories in the class path and are accepted by a given FilenameFilter.
static String[] list(String path)
          List all resource files with a given path relative to root directories in the class path.
static String[] list(String path, FilenameFilter filter)
          List resource files with a given path relative to root directories in the class path and are accepted by a given FilenameFilter.
static void main(String[] args)
          
Supported API: true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

list

public static String[] list()
List all resource files appearing in root directories in the class path.

Supported API: true

Returns:
array of resource names

list

public static String[] list(FilenameFilter filter)
List all resource files that appear in root directories in the class path and are accepted by a given FilenameFilter.

Supported API: true

Parameters:
filter - a FilenameFilter to filter listed names
Returns:
array of resource names

list

public static String[] list(String path)
List all resource files with a given path relative to root directories in the class path.

Supported API: true

Parameters:
path - resource name path (forward slash separated)
Returns:
array of resource names

list

public static String[] list(String path,
                            FilenameFilter filter)
List resource files with a given path relative to root directories in the class path and are accepted by a given FilenameFilter.

Supported API: true

Parameters:
path - resource name path (forward slash separated)
filter - a FilenameFilter to filter listed names
Returns:
array of resource names

main

public static void main(String[] args)

Supported API: true