Class ImpExXMLExportWriter

    • Field Detail

      • IMPEX_HEADER_TAG

        public static final java.lang.String IMPEX_HEADER_TAG
        See Also:
        Constant Field Values
      • writer

        protected java.io.Writer writer
      • xmlout

        protected org.znerd.xmlenc.XMLOutputter xmlout
    • Constructor Detail

      • ImpExXMLExportWriter

        public ImpExXMLExportWriter​(java.io.Writer writer,
                                    java.lang.String encoding)
                             throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • ImpExXMLExportWriter

        public ImpExXMLExportWriter​(java.io.Writer writer,
                                    java.lang.String encoding,
                                    SessionContext ctx)
                             throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
    • 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
      • writeHeaderColumn

        protected void writeHeaderColumn​(AbstractColumnDescriptor col)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • writeHeaderColumn

        protected void writeHeaderColumn​(AbstractDescriptor.ColumnParams colParams,
                                         boolean special)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • 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