FSDirectory , RAMDirectory public abstract class Directory extends Object A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted.
Random access is permitted when reading and writing.
Creates a new, empty file in the directory with the given name. Removes an existing file in the directory. Returns the time the named file was last modified. Returns an array of strings, one for each file in the directory. Returns a stream reading an existing file.