The file source sample program demonstrates a variety of actions performed on a file system through use of a FileSource object. Using FileSource objects programmatically is described in Using File Sources.
IBM Director defines the FileSource class interface as the means by which you can communicate with both local and remote file systems in an abstract manner without concerning yourself with network communication calls, and without having to maintain necessary state information about each system. The provided classes that implement this are:
The file source sample demonstrates how to initialize and use each of the above classes and illustrates common uses of the FileSource interface.This sample is run from the command line and communicates with only one file source at a time.
The sample code consists of Java source for the command-line program.
For more information on compiling and running the sample code, see: Running the example.