public class DelimiterWriter extends AbstractWriter
lineSeparator
Modifier | Constructor and Description |
---|---|
protected |
DelimiterWriter(Map columnMapping,
Writer output,
char delimiter,
char qualifier,
WriterOptions options) |
Modifier and Type | Method and Description |
---|---|
Writer |
nextRecord()
Writes a newline to the output and discards the
rowMap . |
Writer |
printFooter()
Export footer
|
Writer |
printHeader()
Export header
|
protected boolean |
validateColumnTitle(String columnTitle)
Subclasses must implement this method to perform validation of
columnTitle . |
protected void |
write(Object value) |
protected void |
writeColumnTitles() |
protected void |
writeRow() |
protected void |
writeWithDelimiter(Object value) |
addRecordEntry, close, flush, getRowMap, write, write
protected DelimiterWriter(Map columnMapping, Writer output, char delimiter, char qualifier, WriterOptions options) throws IOException
IOException
protected void writeWithDelimiter(Object value) throws IOException
IOException
protected void write(Object value) throws IOException
write
in class AbstractWriter
IOException
protected void writeColumnTitles() throws IOException
IOException
protected void writeRow() throws IOException
IOException
public final Writer nextRecord() throws 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
IOException
public Writer printFooter() throws IOException
Writer
IOException
public Writer printHeader() throws IOException
Writer
IOException
protected boolean validateColumnTitle(String columnTitle)
AbstractWriter
columnTitle
.validateColumnTitle
in class AbstractWriter
columnTitle
- title of the column to be filledtrue
if the column title is valid else return
false
.Copyright © 2006–2021 Appendium - Portfolio Financing Platform. All rights reserved.