public class GenericDiskDataWriterFactory<T> extends AbstractDataWriterFactory<T>
Constructor and Description |
---|
GenericDiskDataWriterFactory(File dir,
FilenameGenerator<T> filenameGenerator)
Create a new factory that creates files in the given
directory.
|
Modifier and Type | Method and Description |
---|---|
protected OutputStream |
getOutputStream(String filename)
Create a new file in the data directory with the given file
name.
|
createDataWriter, isUnique
private final File dir
public GenericDiskDataWriterFactory(File dir, FilenameGenerator<T> filenameGenerator) throws IOException
dir
- The directory to create files inNullPointerException
- If the dir parameter is nullFileNotFoundException
- If the given path is not an existing directoryIOException
protected OutputStream getOutputStream(String filename) throws IOException
getOutputStream
in class AbstractDataWriterFactory<T>
IOException
- If the file already exists or if it can't
be created