java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.select.XmlSerialization
cn.warpin.thirdPart.huawei.obs.obs.services.model.select.CsvInput

public class CsvInput extends XmlSerialization
CSV input serialization format
  • 字段详细资料

    • allowQuotedRecordDelimiter

      private Boolean allowQuotedRecordDelimiter
    • comments

      private Character comments
    • fieldDelimiter

      private Character fieldDelimiter
    • fileHeaderInfo

      private String fileHeaderInfo
    • quoteCharacter

      private Character quoteCharacter
    • quoteEscapeCharacter

      private Character quoteEscapeCharacter
    • recordDelimiter

      private Character recordDelimiter
  • 构造器详细资料

    • CsvInput

      public CsvInput()
  • 方法详细资料

    • withAllowQuotedRecordDelimiter

      public CsvInput withAllowQuotedRecordDelimiter(boolean allowQuotedRecordDelimiter)
      Specifies that CSV fields may contain quoted record delimiters Default is FALSE
      参数:
      allowQuotedRecordDelimiter - Informs when fields may contain record delimiters or not
      返回:
      Self
    • withComments

      public CsvInput withComments(char comments)
      Single character at the beginning of a line to discard the row as a comment Default is none
      参数:
      comments - Comment prefix
      返回:
      Self
    • withFieldDelimiter

      public CsvInput withFieldDelimiter(char fieldDelimiter)
      Single character as field delimiter Default is a comma (,)
      参数:
      fieldDelimiter - Field delimiter
      返回:
      Self
    • withRecordDelimiter

      public CsvInput withRecordDelimiter(char recordDelimiter)
      Single character as record delimiter Default is a newline character (\n)
      参数:
      recordDelimiter - Record delimiter
      返回:
      Self
    • withFileHeaderInfo

      public CsvInput withFileHeaderInfo(FileHeaderInfo fileHeaderInfo)
      Describes the first line of input Default is NONE
      参数:
      fileHeaderInfo - Content and usage of first line of input
      返回:
      Self
    • withQuoteCharacter

      public CsvInput withQuoteCharacter(char quoteCharacter)
      Escape character to quote a field delimiter inside a value Default is a double quote character (")
      参数:
      quoteCharacter - Quote character
      返回:
      Self
    • withQuoteEscapeCharacter

      public CsvInput withQuoteEscapeCharacter(char quoteEscapeCharacter)
      Escape character for escaping the quotation mark inside an already escaped value Default is undefined
      参数:
      quoteEscapeCharacter - Quote escape character
      返回:
      Self
    • appendToXml

      public void appendToXml(OBSXMLBuilder xmlBuilder)
      Formats the input settings into the XML request
      指定者:
      appendToXml 在类中 XmlSerialization
      参数:
      xmlBuilder - The xml serializer