|
||||||||||
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.FixedLengthWriter
public class FixedLengthWriter
Constructor Summary | |
---|---|
protected |
FixedLengthWriter(java.util.Map parsedMapping,
java.io.Writer output,
char padChar)
|
Method Summary | |
---|---|
void |
addRecordEntry(java.lang.String columnName,
java.lang.Object value)
|
protected char[] |
formattedValue(java.lang.Object val,
ColumnMetaData element)
|
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 . |
Methods inherited from class net.sf.flatpack.writer.AbstractWriter |
---|
close, flush, getRowMap, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FixedLengthWriter(java.util.Map parsedMapping, java.io.Writer output, char padChar) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void addRecordEntry(java.lang.String columnName, java.lang.Object value)
addRecordEntry
in interface Writer
addRecordEntry
in class AbstractWriter
public 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
protected char[] formattedValue(java.lang.Object val, ColumnMetaData element)
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
.public void printFooter()
Writer
public void printHeader()
Writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |