|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.common.tools.file.converter.DelimiterLineConverter
DelimiterLineConverter is configurable data format that uses any simple delimiter and escape sequence scheme to encode data into a text file.
DataRow| Constructor Summary | |
DelimiterLineConverter(java.lang.String _delimiter)
Creates a new instance of DelimiterLineConverter with specified delimiter and escape sequence. |
|
DelimiterLineConverter(java.lang.String _delimiter,
java.lang.String _escape)
Creates a new instance of DelimiterLineConverter with specified delimiter and escape sequence. |
|
| Method Summary | |
static DataRow |
convertLine(DataBuffer line)
Splits a String (file data line) following the current delimiter and the current escape characters |
static DataRow |
convertLine(DataBuffer line,
int length)
Splits a String (file data line) following the current delimiter and the current escape characters, with a limited number of exporting token in output DataRow |
static DataRow |
convertLine(java.lang.String line)
Splits a String (file data line) following the current delimiter characters and the current escape characters |
static DataRow |
convertLine(java.lang.String line,
int length)
Splits a String (file data line) following the current delimiter and the current escape characters, with a limited number of exporting token in output DataRow |
static DataBuffer |
format(DataRow row)
Format a DataRow following the current delimiter for output |
static DataBuffer |
format(DataTableHeader header)
Format a DataHeaderRow following the current delimiter for output |
static void |
setDelimiter(java.lang.String _delimiter)
Sets delimiter attribut |
static void |
setEscape(java.lang.String _escape)
Sets escape attribut |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelimiterLineConverter(java.lang.String _delimiter)
throws java.lang.IllegalArgumentException
_delimiter - -
character sequence used to separate one element from
another one. delimiter CANNOT be NULL or
empty string.
java.lang.IllegalArgumentException - if an argument is incorrect (null or empty)
public DelimiterLineConverter(java.lang.String _delimiter,
java.lang.String _escape)
throws java.lang.IllegalArgumentException
_delimiter - - character sequence used to separate one element from
another one. delimiter CANNOT be NULL or
empty string._escape - - character sequence used to signal that next character
sequence (either delimiter or
escape) is part of data.
java.lang.IllegalArgumentException - if an argument is incorrect (null or empty)| Method Detail |
public static DataRow convertLine(DataBuffer line)
line - the line to convert in data row
public static DataRow convertLine(DataBuffer line,
int length)
line - the line to convert in data rowlength - the maximal size of the row
public static DataRow convertLine(java.lang.String line)
line - the line to convert in data row
public static DataRow convertLine(java.lang.String line,
int length)
line - the line to convert in data rowlength - the maximal size of the row
public static DataBuffer format(DataRow row)
row - the row to format
public static DataBuffer format(DataTableHeader header)
header - the header item list to format
public static void setDelimiter(java.lang.String _delimiter)
_delimiter - The new delimiter value.
java.lang.IllegalArgumentException - if an argument is incorrect (null or empty).public static void setEscape(java.lang.String _escape)
_escape - The new escape attribut value.
java.lang.IllegalArgumentException - if an argument is incorrect (null or empty).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||