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 java.io.OutputStream |
getOutputStream(java.lang.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 java.io.IOException
dir
- The directory to create files injava.io.IOException
protected java.io.OutputStream getOutputStream(java.lang.String filename) throws java.io.IOException
getOutputStream
in class AbstractDataWriterFactory<T>
java.io.IOException
- If there is a problem creating the fileprotected void setFileProperties(File file)
file
- The new file