net.chaosserver.bilbo.task.generate.directory
Class DirectoryFormatter

java.lang.Object
  |
  +--net.chaosserver.bilbo.task.generate.directory.DirectoryFormatter
All Implemented Interfaces:
Formatter

public class DirectoryFormatter
extends Object
implements Formatter

Used to format when making a directory listing. This is a pretty format that has no extension.

Since:
Bilbo 2.1

Constructor Summary
DirectoryFormatter()
          Default constructor.
 
Method Summary
 String format(Directory directory, File file)
          Formats the file by returning the current name without extension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFormatter

public DirectoryFormatter()
Default constructor.

Method Detail

format

public String format(Directory directory,
                     File file)
Formats the file by returning the current name without extension

Specified by:
format in interface Formatter
Parameters:
directory - the directory the file is in
file - the file to format the name for
Returns:
the current name of the file


Copyright © 20030415