|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.lift.util.Converter
public class Converter
Description of the Class
| Field Summary | |
|---|---|
static boolean |
CompatibilityMode
Set this to true if you need bug-compatibility with the old version. |
| Constructor Summary | |
|---|---|
Converter()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
CSV_pack(java.lang.String[] In,
char Delim,
char Esc)
Packs a records (0,1, or more fields) into a CSV line. |
static java.lang.String[] |
CSV_unpack(java.lang.String In,
char Delim,
char Esc)
Unpacks a records (0,1, or more fields) from a CSV line. |
static java.lang.String[][] |
CSV_unpack(java.lang.String Filename,
char Delim,
char Esc,
boolean SkipHeader)
Description of the Method |
static java.lang.String |
HTMLTableLine(java.lang.String Name,
java.lang.String[] Line,
java.lang.String Link)
Description of the Method |
static void |
main(java.lang.String[] args)
The main program for the Converter class |
static java.lang.String[] |
toCSV(java.lang.String[][] Data,
java.lang.String[] Header,
java.lang.String NullString,
char Delimeter,
char Escape)
Converts some strings into a CSV-like array. |
static void |
toCSV(java.lang.String FileName,
java.lang.String[][] Data,
java.lang.String[] Header,
java.lang.String NullString,
char Delimeter,
char Escape)
Description of the Method |
static java.lang.String[] |
toHTML(java.lang.String[][] Data,
java.lang.String[] Header,
java.lang.String NullString,
java.lang.String Caption,
java.lang.String TableParams)
Converts some strings into a HTML-like table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean CompatibilityMode
| Constructor Detail |
|---|
public Converter()
| Method Detail |
|---|
public static java.lang.String CSV_pack(java.lang.String[] In,
char Delim,
char Esc)
In - The fields of the record.Delim - The delimeter character, '\t', ';' and ',' are the most
frequent ones.Esc - The escape character, '"' and '\'' are the most frequent
ones.
public static java.lang.String[][] CSV_unpack(java.lang.String Filename,
char Delim,
char Esc,
boolean SkipHeader)
Filename - Description of the ParameterDelim - Description of the ParameterEsc - Description of the ParameterSkipHeader - Description of the Parameter
public static java.lang.String[] CSV_unpack(java.lang.String In,
char Delim,
char Esc)
In - The CSV-packed line.Delim - The delimeter character, '\t', ';' and ',' are the most
frequent ones.Esc - The escape character, '"' and '\'' are the most frequent
ones.
public static java.lang.String HTMLTableLine(java.lang.String Name,
java.lang.String[] Line,
java.lang.String Link)
Name - Description of the ParameterLine - Description of the ParameterLink - Description of the Parameter
public static void main(java.lang.String[] args)
args - The command line arguments
public static void toCSV(java.lang.String FileName,
java.lang.String[][] Data,
java.lang.String[] Header,
java.lang.String NullString,
char Delimeter,
char Escape)
throws java.io.IOException
FileName - Description of the ParameterData - Description of the ParameterHeader - Description of the ParameterNullString - Description of the ParameterDelimeter - Description of the ParameterEscape - Description of the Parameter
java.io.IOException - Description of the Exception
public static java.lang.String[] toCSV(java.lang.String[][] Data,
java.lang.String[] Header,
java.lang.String NullString,
char Delimeter,
char Escape)
Data - The input data, first index is row index, second is column
indexHeader - The header strings for the dataNullString - All nulls are replaced by this in the Data. "N/A",
" " and "" are very common.Delimeter - Description of the ParameterEscape - Description of the Parameter
public static java.lang.String[] toHTML(java.lang.String[][] Data,
java.lang.String[] Header,
java.lang.String NullString,
java.lang.String Caption,
java.lang.String TableParams)
Data - The input data, first index is row index, second is column
indexHeader - The header strings for the dataNullString - All nulls are replaced by this in the Data. "N/A",
" " and "" are very common.Caption - The caption of the tableTableParams - The params of the table tag.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||