public class DateWriter extends AbstractResultWriter
ResultSet.getDate(int)
to read data from
the result set and the DateFormat.format(java.util.Date)
to format the value.Modifier and Type | Field and Description |
---|---|
private java.text.DateFormat |
dateFormat |
index, NULL_ESCAPE, rs, writer
Constructor and Description |
---|
DateWriter(java.sql.ResultSet rs,
int index,
java.io.Writer writer,
char[] nullEscape,
java.text.DateFormat dateFormat) |
Modifier and Type | Method and Description |
---|---|
void |
write()
Write the current data.
|
public DateWriter(java.sql.ResultSet rs, int index, java.io.Writer writer, char[] nullEscape, java.text.DateFormat dateFormat)
public void write() throws java.sql.SQLException, java.io.IOException
ResultWriter
java.sql.SQLException
java.io.IOException