Class GenericBaseDataWriterFactory<T>

  • All Implemented Interfaces:
    DataWriterFactory<T>

    public class GenericBaseDataWriterFactory<T>
    extends AbstractDataWriterFactory<T>
    Generic implementation of a data writer factory that create files in the BASE file system.
    Version:
    2.15
    Author:
    Nicklas
    Last modified
    $Date: 2010-01-12 14:21:49 +0100 (ti, 12 jan 2010) $
    • Constructor Detail

      • GenericBaseDataWriterFactory

        public GenericBaseDataWriterFactory​(DbControl dc,
                                            Directory dir,
                                            FilenameGenerator<T> filenameGenerator)
                                     throws IOException
        Create a new factory that creates files in the given directory. The directory should already exist.
        Parameters:
        dir - The directory to create files in
        Throws:
        IOException
    • Method Detail

      • setFileProperties

        protected void setFileProperties​(File file)
        Set file properties on the newly created file object. The default implementation sets the character set to UTF-8 and the MIME type to text/plain. A subclass may override this method to set other properties.
        Parameters:
        file - The new file