net.sf.basedb.util.bfs
Interface FilenameGenerator<T>
- All Known Implementing Classes:
- AbstractFilenameGenerator, SequenceFilenameGenerator, SuggestedFilenameGenerator
public interface FilenameGenerator<T>
File name generators are used together with DataWriterFactory
implementations to generate file names for BFS data files.
- Version:
- 2.15
- Author:
- Nicklas
- Last modified
- $Date: 2010-01-12 14:21:49 +0100 (Tue, 12 Jan 2010) $
getNextFilename
String getNextFilename(T owner,
String suggestedFilename)
- Get the next file name. This method should never return
the same file name more than one time (given a single
implementor instance). The generator implementation should not
concern itself with the underlying file system or if the file
already exists or not (this is a task for the
DataWriterFactory
implementation).
- Parameters:
owner
- The owner of the data in the filesuggestedFilename
- A default suggested file name (can be null)
- Returns:
- A unique file name