public class FixedLengthWriter extends AbstractWriter
lineSeparator| 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. | 
public Writer addRecordEntry(String columnName, Object value)
addRecordEntry in interface WriteraddRecordEntry in class AbstractWriterpublic Writer nextRecord() throws IOException
AbstractWriterrowMap.
 
 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 WriternextRecord in class AbstractWriterIOExceptionprotected char[] formattedValue(Object val, ColumnMetaData element)
protected boolean validateColumnTitle(String columnTitle)
AbstractWritercolumnTitle.validateColumnTitle in class AbstractWritercolumnTitle - 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.