|
|||||||||
| 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 value,
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 WriteraddRecordEntry in class AbstractWriter
public void nextRecord()
throws java.io.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 AbstractWriterjava.io.IOException
protected char[] formattedValue(java.lang.Object value,
ColumnMetaData element)
protected boolean validateColumnTitle(java.lang.String columnTitle)
AbstractWritercolumnTitle.
validateColumnTitle in class AbstractWritercolumnTitle - 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 | ||||||||