public abstract class AbstractCsvLayout extends AbstractStringLayout
AbstractStringLayout.Builder<B extends AbstractStringLayout.Builder<B>>, AbstractStringLayout.Serializer, AbstractStringLayout.Serializer2
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_CHARSET |
protected static String |
DEFAULT_FORMAT |
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
configuration, eventCount, footer, header, LOGGER
ELEMENT_TYPE
Modifier | Constructor and Description |
---|---|
protected |
AbstractCsvLayout(Configuration config,
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, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
encode, getConfiguration, getContentFormat, markEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentFormat, toSerializable
protected 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()
Layout
getContentType
in interface Layout<String>
getContentType
in class AbstractStringLayout
public org.apache.commons.csv.CSVFormat getFormat()
Copyright © 1999-2023 The 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.