Class AbstractCsvLayout

    • Field Detail

      • DEFAULT_CHARSET

        protected static final java.lang.String DEFAULT_CHARSET
        See Also:
        Constant Field Values
      • format

        private final org.apache.commons.csv.CSVFormat format
    • Constructor Detail

      • AbstractCsvLayout

        protected AbstractCsvLayout​(Configuration config,
                                    java.nio.charset.Charset charset,
                                    org.apache.commons.csv.CSVFormat csvFormat,
                                    java.lang.String header,
                                    java.lang.String footer)
    • Method Detail

      • createFormat

        protected static org.apache.commons.csv.CSVFormat createFormat​(java.lang.String format,
                                                                       java.lang.Character delimiter,
                                                                       java.lang.Character escape,
                                                                       java.lang.Character quote,
                                                                       org.apache.commons.csv.QuoteMode quoteMode,
                                                                       java.lang.String nullString,
                                                                       java.lang.String recordSeparator)
      • isNotNul

        private static boolean isNotNul​(java.lang.Character character)
      • getContentType

        public java.lang.String getContentType()
        Description copied from interface: Layout
        Returns the content type output by this layout. The base class returns "text/plain".
        Specified by:
        getContentType in interface Layout<java.lang.String>
        Overrides:
        getContentType in class AbstractStringLayout
        Returns:
        The default content type for Strings.
      • getFormat

        public org.apache.commons.csv.CSVFormat getFormat()