Class ImpExCSVExportWriter


  • public class ImpExCSVExportWriter
    extends ImpExExportWriter
    Implementation of the export writer using a CSVWriter for exporting items.
    • Constructor Detail

      • ImpExCSVExportWriter

        public ImpExCSVExportWriter​(CSVWriter writer)
        Instantiates a new exporter with given writer.
        Parameters:
        writer - writer where the items will be exported to
      • ImpExCSVExportWriter

        public ImpExCSVExportWriter​(CSVWriter writer,
                                    SessionContext ctx)
        Instantiates a new exporter with given writer.
        Parameters:
        writer - writer where the items will be exported to
        ctx - session context used for export
    • Method Detail

      • comment

        public void comment​(java.lang.String text)
        Description copied from class: ImpExExportWriter
        Writes a comment.
        Specified by:
        comment in class ImpExExportWriter
        Parameters:
        text - comment to write
      • getExportWriter

        public java.lang.Object getExportWriter()
        Description copied from class: ImpExExportWriter
        Returns the general writer which is used for this export. e.g. a CSvWriter or a XMLWriter. The returnvalue must be casted.
        Specified by:
        getExportWriter in class ImpExExportWriter
        Returns:
        uncasted Object
      • writeComment

        public void writeComment​(java.lang.String scrline)
                          throws java.io.IOException
        Description copied from class: ImpExExportWriter
        Writes the String comment to the writer as a line comment.
        Specified by:
        writeComment in class ImpExExportWriter
        Parameters:
        scrline - the line to be written to the writer
        Throws:
        java.io.IOException - if an error occurs while writing
      • writeSrcLine

        public void writeSrcLine​(java.lang.String scrline)
                          throws java.io.IOException
        Description copied from class: ImpExExportWriter
        Writes the String srcLine to the writer as a normal line.
        Specified by:
        writeSrcLine in class ImpExExportWriter
        Parameters:
        scrline - the line to be written to the writer
        Throws:
        java.io.IOException - if an error occurs while writing