Layout<String>, Encoder<String>, StringLayoutCsvLogEventLayout, CsvParameterLayoutpublic abstract class AbstractCsvLayout extends AbstractStringLayout
AbstractStringLayout.Builder<B extends AbstractStringLayout.Builder<B>>, AbstractStringLayout.Serializer, AbstractStringLayout.Serializer2| Modifier and Type | Field | Description |
|---|---|---|
protected static String |
DEFAULT_CHARSET |
|
protected static String |
DEFAULT_FORMAT |
configuration, eventCount, footer, header, LOGGERDEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZEELEMENT_TYPE| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractCsvLayout(Configuration config,
Charset charset,
org.apache.commons.csv.CSVFormat csvFormat,
String header,
String footer) |
| Modifier and Type | Method | 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() |
encode, getConfiguration, getContentFormat, markEventgetBytes, getCharset, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, serializeToBytes, serializeToString, toByteArray, trimToMaxSizegetContentFormat, toSerializableprotected static final String DEFAULT_CHARSET
protected static final String DEFAULT_FORMAT
protected AbstractCsvLayout(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer)
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()
LayoutgetContentType in interface Layout<String>getContentType in class AbstractStringLayoutpublic org.apache.commons.csv.CSVFormat getFormat()
Copyright © 1999-2018. 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.