Class CSVConstants


  • public final class CSVConstants
    extends java.lang.Object
    Contains all constants which are in context of reading, processing or writing CSV-files in general.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char DEFAULT_COMMENT_CHAR
      Default character (#) for commenting lines used while reading and writing CSV-streams.
      static java.lang.String DEFAULT_ENCODING
      Default encoding used for reading and writing CSV-streams configured at project.properties using key 'csv.encoding'.
      static char DEFAULT_FIELD_SEPARATOR
      Default field separator char for reading and writing CSV-streams configured at project.properties using key 'csv.fieldseparator'.
      static java.lang.String DEFAULT_LINE_SEPARATOR
      Default line separator (line break) used for reading and writing CSV-streams.
      static long DEFAULT_MAX_MULTI_LINES
      Default maximal amount of multi line breaks within one line/record configured at project.properties using key 'csv.maxmultilines'.
      static java.lang.String DEFAULT_MULTI_LINE_SEPARATOR
      Default separator (\\) character defining the continuing of CSV-line in next physical line while reading and writing CSV-streams.
      static char DEFAULT_QUOTE_CHARACTER
      Default field enclosing character for reading and writing CSV-streams configured at project.properties using key 'csv.quotecharacter'.
      static java.lang.String HYBRIS_ENCODING
      Encoding used for platform internal CSV-streams and as fallback encoding of DEFAULT_ENCODING.
      static char HYBRIS_FIELD_SEPARATOR
      Line separator used for platform internal CSV-streams and as fallback separator of DEFAULT_LINE_SEPARATOR .
      static java.lang.String HYBRIS_LINE_SEPARATOR
      Line separator used for platform internal CSV-streams and as fallback separator of DEFAULT_LINE_SEPARATOR .
      static long HYBRIS_MAX_MULTI_LINES
      Maximal amount of multi line breaks within one line/record used as fallback of DEFAULT_MULTI_LINE_SEPARATOR
      static char HYBRIS_QUOTE_CHARACTER
      Quote character used for platform internal CSV-streams and as fallback separator of HYBRIS_QUOTE_CHARACTER.
      static java.lang.String[] LINE_SEPARATORS
      Contains all possible strings for a line terminator.
    • Constructor Summary

      Constructors 
      Constructor Description
      CSVConstants()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HYBRIS_ENCODING

        public static final java.lang.String HYBRIS_ENCODING
        Encoding used for platform internal CSV-streams and as fallback encoding of DEFAULT_ENCODING.
        See Also:
        Constant Field Values
      • DEFAULT_ENCODING

        public static final java.lang.String DEFAULT_ENCODING
        Default encoding used for reading and writing CSV-streams configured at project.properties using key 'csv.encoding'.
      • HYBRIS_LINE_SEPARATOR

        public static final java.lang.String HYBRIS_LINE_SEPARATOR
        Line separator used for platform internal CSV-streams and as fallback separator of DEFAULT_LINE_SEPARATOR .
        See Also:
        Constant Field Values
      • DEFAULT_LINE_SEPARATOR

        public static final java.lang.String DEFAULT_LINE_SEPARATOR
        Default line separator (line break) used for reading and writing CSV-streams. Can be defined at local.properties with key 'csv.lineseparator'. If not defined in local.properties, system property 'line.separator' will be used. If system property 'line.separator' is not set, {@link this#HYBRIS_LINE_SEPARATOR} will be used.
      • DEFAULT_FIELD_SEPARATOR

        public static final char DEFAULT_FIELD_SEPARATOR
        Default field separator char for reading and writing CSV-streams configured at project.properties using key 'csv.fieldseparator'.
      • DEFAULT_QUOTE_CHARACTER

        public static final char DEFAULT_QUOTE_CHARACTER
        Default field enclosing character for reading and writing CSV-streams configured at project.properties using key 'csv.quotecharacter'.
      • DEFAULT_COMMENT_CHAR

        public static final char DEFAULT_COMMENT_CHAR
        Default character (#) for commenting lines used while reading and writing CSV-streams.
        See Also:
        Constant Field Values
      • DEFAULT_MULTI_LINE_SEPARATOR

        public static final java.lang.String DEFAULT_MULTI_LINE_SEPARATOR
        Default separator (\\) character defining the continuing of CSV-line in next physical line while reading and writing CSV-streams.
        See Also:
        Constant Field Values
      • DEFAULT_MAX_MULTI_LINES

        public static final long DEFAULT_MAX_MULTI_LINES
        Default maximal amount of multi line breaks within one line/record configured at project.properties using key 'csv.maxmultilines'. See DEFAULT_MULTI_LINE_SEPARATOR
      • LINE_SEPARATORS

        public static final java.lang.String[] LINE_SEPARATORS
        Contains all possible strings for a line terminator. Referring to the Pattern class, thiese are:
        • A newline (line feed) character ('\n'),
        • A carriage-return character followed immediately by a newline character ("\r\n"),
        • A standalone carriage-return character ('\r'),
        • A next-line character ('…'),
        • A line-separator character ('
'), or
        • A paragraph-separator character ('
).
    • Constructor Detail

      • CSVConstants

        public CSVConstants()