Package org.deidentifier.arx.io
Klasse CSVSyntax
java.lang.Object
org.deidentifier.arx.io.CSVSyntax
- Alle implementierten Schnittstellen:
Serializable
Syntax for a CSV file.
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final charDefault values.static final charDefault values.static final char[]Default values.static final charDefault values. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates a new syntax for a CSV file.CSVSyntax(char delimiter) Instantiates a new syntax for a CSV file.CSVSyntax(char delimiter, char quote) Instantiates a new syntax for a CSV file.CSVSyntax(char delimiter, char quote, char escape) Instantiates a new syntax for a CSV file.CSVSyntax(char delimiter, char quote, char escape, char[] linebreak) Instantiates a new syntax for a CSV file.Instantiates a new syntax for a CSV file. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String[]Returns the available line breakscharGets the delimiter.charGets the escape.static StringgetLabelForLinebreak(char[] linebreak) Returns a label for a linebreakchar[]Gets the line break.static char[]getLinebreakForLabel(String label) Returns a linebreak for a labelintReturns the max columnsstatic chargetNormalizedLinebreak(char[] linebreak) Gets the normalized line break character.chargetQuote()Gets the quote.voidsetDelimiter(char delimiter) Sets the delimiter.voidsetEscape(char escape) Sets the escape.voidsetLinebreak(char[] linebreak) Sets the line break.voidsetLinebreak(String linebreak) Sets the line break.voidsetMaxColumns(int maxColumns) Sets max columnsvoidsetQuote(char quote) Sets the quote.
-
Felddetails
-
DEFAULT_DELIMITER
public static final char DEFAULT_DELIMITERDefault values.- Siehe auch:
-
DEFAULT_QUOTE
public static final char DEFAULT_QUOTEDefault values.- Siehe auch:
-
DEFAULT_ESCAPE
public static final char DEFAULT_ESCAPEDefault values.- Siehe auch:
-
DEFAULT_LINEBREAK
public static final char[] DEFAULT_LINEBREAKDefault 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 delimiterquote- the quote
-
CSVSyntax
public CSVSyntax(char delimiter, char quote, char escape) Instantiates a new syntax for a CSV file.- Parameter:
delimiter- the delimiterquote- the quoteescape- the escape
-
CSVSyntax
public CSVSyntax(char delimiter, char quote, char escape, char[] linebreak) Instantiates a new syntax for a CSV file.- Parameter:
delimiter- the delimiterquote- the quoteescape- the escapelinebreak- the line break
-
CSVSyntax
Instantiates a new syntax for a CSV file.- Parameter:
delimiter- the delimiterquote- the quoteescape- the escapelinebreak- the line break
-
-
Methodendetails
-
getAvailableLinebreaks
Returns the available line breaks- Gibt zurück:
-
getLabelForLinebreak
Returns a label for a linebreak- Parameter:
linebreak-- Gibt zurück:
-
getLinebreakForLabel
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
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-
-