Class CSVConstants

java.lang.Object
de.hybris.platform.util.CSVConstants

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

    • HYBRIS_ENCODING

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

      public static final 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 String HYBRIS_LINE_SEPARATOR
      Line separator used for platform internal CSV-streams and as fallback separator of DEFAULT_LINE_SEPARATOR .
      See Also:
    • DEFAULT_LINE_SEPARATOR

      public static final 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.
    • HYBRIS_FIELD_SEPARATOR

      public static final char HYBRIS_FIELD_SEPARATOR
      Line separator used for platform internal CSV-streams and as fallback separator of DEFAULT_LINE_SEPARATOR .
      See Also:
    • 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'.
    • HYBRIS_QUOTE_CHARACTER

      public static final char HYBRIS_QUOTE_CHARACTER
      Quote character used for platform internal CSV-streams and as fallback separator of HYBRIS_QUOTE_CHARACTER.
      See Also:
    • 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:
    • DEFAULT_MULTI_LINE_SEPARATOR

      public static final 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:
    • HYBRIS_MAX_MULTI_LINES

      public static final long HYBRIS_MAX_MULTI_LINES
      Maximal amount of multi line breaks within one line/record used as fallback of DEFAULT_MULTI_LINE_SEPARATOR
      See Also:
    • 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 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 Details

    • CSVConstants

      public CSVConstants()