net.sf.basedb.core.migrate
Class TextWriter
java.lang.Object
net.sf.basedb.core.migrate.AbstractResultWriter
net.sf.basedb.core.migrate.TextWriter
- All Implemented Interfaces:
- ResultWriter
public class TextWriter
- extends AbstractResultWriter
Generic writer implementation that writes string values
from a result set. An escape map can be given at construction
time that maps character-values to an escape char[] sequence.
If no escape sequence is given the original character is written
as is. This writer use ResultSet.getString(int)
to read
data from the result set.
- Since:
- 3.1
- Author:
- Nicklas
- Last modified
- $Date$
Field Summary |
private char[][] |
ESCAPE
|
Method Summary |
void |
write()
Write the current data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ESCAPE
private final char[][] ESCAPE
TextWriter
public TextWriter(ResultSet rs,
int index,
Writer writer,
char[] nullEscape,
char[][] charEscape)
write
public void write()
throws SQLException,
IOException
- Description copied from interface:
ResultWriter
- Write the current data.
- Throws:
SQLException
IOException