|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.flatpack.writer.AbstractWriter
net.sf.flatpack.writer.DelimiterWriter
public class DelimiterWriter
Constructor Summary | |
---|---|
protected |
DelimiterWriter(java.util.Map columnMapping,
java.io.Writer output,
char delimiter,
char qualifier)
|
Method Summary | |
---|---|
protected void |
addColumnTitle(java.lang.String string)
|
void |
nextRecord()
Writes a newline to the output and discards the rowMap . |
void |
printFooter()
put writer into footer mode. |
void |
printHeader()
put writer into header mode. |
protected boolean |
validateColumnTitle(java.lang.String columnTitle)
Subclasses must implement this method to perform validation of columnTitle . |
protected void |
write(java.lang.Object value)
|
protected void |
writeColumnTitles()
|
protected void |
writeRow()
|
protected void |
writeWithDelimiter(java.lang.Object value)
|
Methods inherited from class net.sf.flatpack.writer.AbstractWriter |
---|
addRecordEntry, close, flush, getRowMap, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DelimiterWriter(java.util.Map columnMapping, java.io.Writer output, char delimiter, char qualifier) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected void writeWithDelimiter(java.lang.Object value) throws java.io.IOException
java.io.IOException
protected void write(java.lang.Object value) throws java.io.IOException
write
in class AbstractWriter
java.io.IOException
protected void addColumnTitle(java.lang.String string)
protected void writeColumnTitles() throws java.io.IOException
java.io.IOException
protected void writeRow() throws java.io.IOException
java.io.IOException
public final void nextRecord() throws java.io.IOException
AbstractWriter
rowMap
.
This method must be overridden by subclasses to write out the record data
stored in rowMap
. Overriders must call
super.nextRecord()
as the last call in their implementation.
nextRecord
in interface Writer
nextRecord
in class AbstractWriter
java.io.IOException
public void printFooter()
Writer
public void printHeader()
Writer
protected boolean validateColumnTitle(java.lang.String columnTitle)
AbstractWriter
columnTitle
.
validateColumnTitle
in class AbstractWriter
columnTitle
- title of the column to be filled
true
if the column title is valid else return
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |