|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.csvman.CsvWriter
Internal class. Use once per output process.
| Constructor Summary | |
CsvWriter(Writer pWriter,
CsvSpec pCsvSpec)
Create a new CsvWriter wrapping a Writer, with settings from a CsvSpec. |
|
| Method Summary | |
static String |
formatField(String pField,
String pEol,
CsvSpec pCsvSpec)
Format data field (escape, quote, etc.) as String for output. |
int |
getLineCount()
Get the number of lines output so far. |
static String |
makeEol(CsvSpec pCsvSpec)
Heuristic creation of line ending for current platform and settings. |
static String |
makeSep(CsvSpec pCsvSpec)
Make separator character from settings. |
void |
write(String[] pLine)
Exception handling must be done by calling code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CsvWriter(Writer pWriter,
CsvSpec pCsvSpec)
CsvWriter wrapping a Writer, with settings from a CsvSpec.
| Method Detail |
public void write(String[] pLine)
throws Exception
Exceptionpublic int getLineCount()
public static String makeEol(CsvSpec pCsvSpec)
public static String makeSep(CsvSpec pCsvSpec)
public static String formatField(String pField,
String pEol,
CsvSpec pCsvSpec)
pField - data field source text
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||