Class CSVSprayFormat

java.lang.Object
com.adaptris.hpcc.arguments.SprayFormat
com.adaptris.hpcc.arguments.CSVSprayFormat
All Implemented Interfaces:
ComponentLifecycleExtension

public class CSVSprayFormat extends SprayFormat
SprayFormat implementation that allows the configuration of command specific arguments for format=csv sprays.
encoding no One of the following: ascii, utf8, utf8n, utf16, utf16le, utf16be, utf32, utf32le, utf32be ascii
maxrecordsize no The maximum size of each record, in bytes. 8192
separator no The field delimiter. comma (\,)
terminator no The record delimiter. line feed or carriage return linefeed (\r,\r\n)
quote no The string quote character. single quote (’).

NOTE: Defaults are driven by dfuplus command them selves, they will not be set unless explicitly set.

  • Constructor Details

    • CSVSprayFormat

      public CSVSprayFormat()
  • Method Details

    • prepare

      public void prepare() throws CoreException
      Throws:
      CoreException
    • addCommandSpecificArguments

      public void addCommandSpecificArguments(org.apache.commons.exec.CommandLine cmdLine)
    • getFormat

      public String getFormat()
    • setEncoding

      public void setEncoding(SprayFormat.ENCODING encoding)
    • getEncoding

      public SprayFormat.ENCODING getEncoding()
    • encoding

      public String encoding()
    • setMaxRecordSize

      public void setMaxRecordSize(Integer maxRecordSize)
    • getMaxRecordSize

      public Integer getMaxRecordSize()
    • setSeparator

      public void setSeparator(String separator)
    • getSeparator

      public String getSeparator()
    • setQuote

      public void setQuote(String quote)
    • getQuote

      public String getQuote()
    • setTerminator

      public void setTerminator(String terminator)
    • getTerminator

      public String getTerminator()