Klasse CSVSyntax

java.lang.Object
org.deidentifier.arx.io.CSVSyntax
Alle implementierten Schnittstellen:
Serializable

public class CSVSyntax extends Object implements Serializable
Syntax for a CSV file.
Siehe auch:
  • Felddetails

    • DEFAULT_DELIMITER

      public static final char DEFAULT_DELIMITER
      Default values.
      Siehe auch:
    • DEFAULT_QUOTE

      public static final char DEFAULT_QUOTE
      Default values.
      Siehe auch:
    • DEFAULT_ESCAPE

      public static final char DEFAULT_ESCAPE
      Default values.
      Siehe auch:
    • DEFAULT_LINEBREAK

      public static final char[] DEFAULT_LINEBREAK
      Default values.
  • Konstruktordetails

    • CSVSyntax

      public CSVSyntax()
      Instantiates a new syntax for a CSV file.
    • CSVSyntax

      public CSVSyntax(char delimiter)
      Instantiates a new syntax for a CSV file.
      Parameter:
      delimiter - the delimiter
    • CSVSyntax

      public CSVSyntax(char delimiter, char quote)
      Instantiates a new syntax for a CSV file.
      Parameter:
      delimiter - the delimiter
      quote - the quote
    • CSVSyntax

      public CSVSyntax(char delimiter, char quote, char escape)
      Instantiates a new syntax for a CSV file.
      Parameter:
      delimiter - the delimiter
      quote - the quote
      escape - the escape
    • CSVSyntax

      public CSVSyntax(char delimiter, char quote, char escape, char[] linebreak)
      Instantiates a new syntax for a CSV file.
      Parameter:
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the line break
    • CSVSyntax

      public CSVSyntax(char delimiter, char quote, char escape, String linebreak)
      Instantiates a new syntax for a CSV file.
      Parameter:
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the line break
  • Methodendetails

    • getAvailableLinebreaks

      public static String[] getAvailableLinebreaks()
      Returns the available line breaks
      Gibt zurück:
    • getLabelForLinebreak

      public static String getLabelForLinebreak(char[] linebreak)
      Returns a label for a linebreak
      Parameter:
      linebreak -
      Gibt zurück:
    • getLinebreakForLabel

      public static char[] getLinebreakForLabel(String label)
      Returns a linebreak for a label
      Parameter:
      label -
      Gibt zurück:
    • getNormalizedLinebreak

      public static char getNormalizedLinebreak(char[] linebreak)
      Gets the normalized line break character.
      Parameter:
      linebreak - the line break
      Gibt zurück:
      the normalized line break character
    • getDelimiter

      public char getDelimiter()
      Gets the delimiter.
      Gibt zurück:
      the delimiter
    • getEscape

      public char getEscape()
      Gets the escape.
      Gibt zurück:
      the escape
    • getLinebreak

      public char[] getLinebreak()
      Gets the line break.
      Gibt zurück:
      the line break
    • getQuote

      public char getQuote()
      Gets the quote.
      Gibt zurück:
      the quote
    • getMaxColumns

      public int getMaxColumns()
      Returns the max columns
      Gibt zurück:
    • setDelimiter

      public void setDelimiter(char delimiter)
      Sets the delimiter.
      Parameter:
      delimiter - the new delimiter
    • setEscape

      public void setEscape(char escape)
      Sets the escape.
      Parameter:
      escape - the new escape
    • setLinebreak

      public void setLinebreak(char[] linebreak)
      Sets the line break.
      Parameter:
      linebreak - the new line break
    • setLinebreak

      public void setLinebreak(String linebreak)
      Sets the line break.
      Parameter:
      linebreak - the new line break
    • setQuote

      public void setQuote(char quote)
      Sets the quote.
      Parameter:
      quote - the new quote
    • setMaxColumns

      public void setMaxColumns(int maxColumns)
      Sets max columns
      Parameter:
      maxColumns -