    01: import java.io.*;
    02:
    03: public class FileNode implements FileSystemNode
    04: {
    05:    public FileNode(File file)
    06:    {
    07:       this.file = file;
    08:    }
    09:
    10:    public File getFile() { return file; }
    11:
    12:    public void accept(FileSystemVisitor v)
    13:    {
    14:       v.visitFileNode(this);
    15:    }
    16:
    17:    private File file;
    18: }