|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.stream.csv.CsvWriterFactory
public class CsvWriterFactory
This record writer factory is used to create and configure a CsvWriter.
CsvWriter| Constructor Summary | |
|---|---|
CsvWriterFactory()
|
|
| Method Summary | |
|---|---|
RecordWriter |
createWriter(Writer out)
Creates a new RecordWriter to write to an output stream. |
char |
getDelimiter()
Returns the field delimiter. |
char |
getEscape()
Returns the escape character. |
String |
getLineSeparator()
Deprecated. |
char |
getQuote()
Returns the character to use for a quotation mark. |
String |
getRecordTerminator()
Returns the text used to terminate a record. |
boolean |
isAlwaysQuote()
Returns true if fields should always be quoted. |
void |
setAlwaysQuote(boolean alwaysQuote)
Set to true to quote every field. |
void |
setDelimiter(char c)
Sets the field delimiter. |
void |
setEscape(char c)
Sets the escape character. |
void |
setLineSeparator(String lineSeparator)
Deprecated. |
void |
setQuote(char quote)
Sets the character to use for a quotation mark. |
void |
setRecordTerminator(String recordTerminator)
Sets the text used to terminate a record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CsvWriterFactory()
| Method Detail |
|---|
public RecordWriter createWriter(Writer out)
RecordWriterFactory
createWriter in interface RecordWriterFactoryout - the output stream to write to
public void setDelimiter(char c)
c - the character used to delimit fieldspublic char getQuote()
public void setQuote(char quote)
quote - the new quotation mark characterpublic char getDelimiter()
public void setEscape(char c)
c - the new escape characterpublic char getEscape()
public boolean isAlwaysQuote()
public void setAlwaysQuote(boolean alwaysQuote)
alwaysQuote - set to true to quote every field regardless
of contentpublic String getRecordTerminator()
public void setRecordTerminator(String recordTerminator)
recordTerminator - the record termination textpublic String getLineSeparator()
public void setLineSeparator(String lineSeparator)
lineSeparator - the line separation text
|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||