public class CSVSyntax
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_DELIMITER
Default values.
|
static char |
DEFAULT_ESCAPE
Default values.
|
static char[] |
DEFAULT_LINEBREAK
Default values.
|
static char |
DEFAULT_QUOTE
Default values.
|
| Constructor and Description |
|---|
CSVSyntax()
Instantiates 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.
|
CSVSyntax(char delimiter,
char quote,
char escape,
java.lang.String linebreak)
Instantiates a new syntax for a CSV file.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
getAvailableLinebreaks()
Returns the available line breaks
|
char |
getDelimiter()
Gets the delimiter.
|
char |
getEscape()
Gets the escape.
|
static java.lang.String |
getLabelForLinebreak(char[] linebreak)
Returns a label for a linebreak
|
char[] |
getLinebreak()
Gets the line break.
|
static char[] |
getLinebreakForLabel(java.lang.String label)
Returns a linebreak for a label
|
int |
getMaxColumns()
Returns the max columns
|
static char |
getNormalizedLinebreak(char[] linebreak)
Gets the normalized line break character.
|
char |
getQuote()
Gets the quote.
|
void |
setDelimiter(char delimiter)
Sets the delimiter.
|
void |
setEscape(char escape)
Sets the escape.
|
void |
setLinebreak(char[] linebreak)
Sets the line break.
|
void |
setLinebreak(java.lang.String linebreak)
Sets the line break.
|
void |
setMaxColumns(int maxColumns)
Sets max columns
|
void |
setQuote(char quote)
Sets the quote.
|
public static final char DEFAULT_DELIMITER
public static final char DEFAULT_QUOTE
public static final char DEFAULT_ESCAPE
public static final char[] DEFAULT_LINEBREAK
public CSVSyntax()
public CSVSyntax(char delimiter)
delimiter - the delimiterpublic CSVSyntax(char delimiter,
char quote)
delimiter - the delimiterquote - the quotepublic CSVSyntax(char delimiter,
char quote,
char escape)
delimiter - the delimiterquote - the quoteescape - the escapepublic CSVSyntax(char delimiter,
char quote,
char escape,
char[] linebreak)
delimiter - the delimiterquote - the quoteescape - the escapelinebreak - the line breakpublic CSVSyntax(char delimiter,
char quote,
char escape,
java.lang.String linebreak)
delimiter - the delimiterquote - the quoteescape - the escapelinebreak - the line breakpublic static java.lang.String[] getAvailableLinebreaks()
public static java.lang.String getLabelForLinebreak(char[] linebreak)
linebreak - public static char[] getLinebreakForLabel(java.lang.String label)
label - public static char getNormalizedLinebreak(char[] linebreak)
linebreak - the line breakpublic char getDelimiter()
public char getEscape()
public char[] getLinebreak()
public char getQuote()
public int getMaxColumns()
public void setDelimiter(char delimiter)
delimiter - the new delimiterpublic void setEscape(char escape)
escape - the new escapepublic void setLinebreak(char[] linebreak)
linebreak - the new line breakpublic void setLinebreak(java.lang.String linebreak)
linebreak - the new line breakpublic void setQuote(char quote)
quote - the new quotepublic void setMaxColumns(int maxColumns)
maxColumns -