|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcexporter.formatter.PatternDelimiterFormatter
The PatternDelimiterFormatter class implements the DelimiterFormatter interface to format column values in a java.text.MessageFormat pattern. It uses a custom Format class that includes several enhancements. The first column value will be placed into the pattern where '{1}' is found.
CustomMessageFormat
Constructor Summary | |
PatternDelimiterFormatter()
|
Method Summary | |
void |
finish()
Finishs the writing of rows to the output source. |
java.lang.String |
formatValues(ColumnValue[] values)
Creates a string representing the row of column values. |
void |
setPattern(java.lang.String pattern)
Sets the pattern to use when formatting the values. |
void |
setWriter(java.io.Writer output)
Sets the output source for the formatter. |
void |
writeNextRow(java.lang.String row)
Writes the next row to the output source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PatternDelimiterFormatter()
Method Detail |
public void setPattern(java.lang.String pattern)
pattern
- the patternpublic void setWriter(java.io.Writer output)
DelimiterFormatter
setWriter
in interface DelimiterFormatter
output
- the destination of the dataDelimiterFormatter.setWriter(java.io.Writer)
public java.lang.String formatValues(ColumnValue[] values)
DelimiterFormatter
formatValues
in interface DelimiterFormatter
values
- the column values
DelimiterFormatter.formatValues(net.sourceforge.jdbcimporter.ColumnValue[])
public void writeNextRow(java.lang.String row) throws java.io.IOException
DelimiterFormatter
writeNextRow
in interface DelimiterFormatter
row
- the next row
java.io.IOException
- if an error occurs while writing the next rowDelimiterFormatter.writeNextRow(java.lang.String)
public void finish() throws java.io.IOException
DelimiterFormatter
finish
in interface DelimiterFormatter
java.io.IOException
DelimiterFormatter.finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |