public class FixedLengthWriter extends AbstractWriter
Modifier | Constructor and Description |
---|---|
protected |
FixedLengthWriter(Map parsedMapping,
Writer output,
char padChar) |
Modifier and Type | Method and Description |
---|---|
Writer |
addRecordEntry(String columnName,
Object value) |
protected char[] |
formattedValue(Object val,
ColumnMetaData element) |
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 FixedLengthWriter(Map parsedMapping, Writer output, char padChar) throws IOException
IOException
public Writer addRecordEntry(String columnName, Object value)
addRecordEntry
in interface Writer
addRecordEntry
in class AbstractWriter
public 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
protected char[] formattedValue(Object val, ColumnMetaData element)
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–2016 Appendium - Portfolio Financing Platform. All rights reserved.