|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.util.CSVWriter
public class CSVWriter
Generic writer for CSV-Files.
| Constructor Summary | |
|---|---|
CSVWriter(Writer writer)
Creates a CSV-Writer. |
|
| Method Summary | |
|---|---|
void |
formatCSVObject(CSVObject object)
Writes an object to a CSV-stream. |
char |
getFieldDelimiter()
Fets the field delimiter. |
int |
getObjectCount()
Gets the number of written objects. |
char |
getQuoteCharacter()
Gets the quote character. |
void |
setFieldDelimiter(char fieldDelimiter)
Sets the field delimiter. |
void |
setQuoteCharacter(char quoteCharacter)
Sets the quote character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVWriter(Writer writer)
writer - the output stream to write to| Method Detail |
|---|
public void formatCSVObject(CSVObject object)
throws ApplicationException
object - the object to be written
ApplicationException - if some errorpublic int getObjectCount()
public char getFieldDelimiter()
public void setFieldDelimiter(char fieldDelimiter)
fieldDelimiter - the delimiter, default is commapublic char getQuoteCharacter()
public void setQuoteCharacter(char quoteCharacter)
quoteCharacter - the quote character, default is double-quote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||