public abstract class AbstractCsvLayout extends AbstractStringLayout
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_CHARSET |
protected static String |
DEFAULT_FORMAT |
DEFAULT_STRING_BUILDER_SIZE
footer, header, LOGGER
ELEMENT_TYPE
Modifier | Constructor and Description |
---|---|
protected |
AbstractCsvLayout(Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.commons.csv.CSVFormat |
createFormat(String format,
Character delimiter,
Character escape,
Character quote,
org.apache.commons.csv.QuoteMode quoteMode,
String nullString,
String recordSeparator) |
String |
getContentType()
Returns the content type output by this layout.
|
org.apache.commons.csv.CSVFormat |
getFormat() |
getBytes, getCharset, getStringBuilder, toByteArray
getContentFormat, getFooter, getHeader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentFormat, getFooter, getHeader, toSerializable
protected static final String DEFAULT_CHARSET
protected static final String DEFAULT_FORMAT
protected static org.apache.commons.csv.CSVFormat createFormat(String format, Character delimiter, Character escape, Character quote, org.apache.commons.csv.QuoteMode quoteMode, String nullString, String recordSeparator)
public String getContentType()
Layout
getContentType
in interface Layout<String>
getContentType
in class AbstractStringLayout
public org.apache.commons.csv.CSVFormat getFormat()
Copyright © 1999-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.