public class GenericBaseDataWriterFactory<T> extends AbstractDataWriterFactory<T>
Modifier and Type | Field and Description |
---|---|
private DbControl |
dc |
private Directory |
dir |
Constructor and Description |
---|
GenericBaseDataWriterFactory(DbControl dc,
Directory 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.
|
protected void |
setFileProperties(File file)
Set file properties on the newly created file object.
|
createDataWriter, isUnique
public GenericBaseDataWriterFactory(DbControl dc, Directory dir, FilenameGenerator<T> filenameGenerator) throws IOException
dir
- The directory to create files inIOException
protected OutputStream getOutputStream(String filename) throws IOException
getOutputStream
in class AbstractDataWriterFactory<T>
IOException
- If there is a problem creating the fileprotected void setFileProperties(File file)
file
- The new file