public class ResultSetReader extends StringLineReader
PS: remember this is a Reader not InputStream, so all the fields read going to be converted to strings before they returned.
Constructor and Description |
---|
ResultSetReader(ResultSet in) |
ResultSetReader(ResultSet in,
String delimiter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getRowCount() |
protected String |
nextLine()
Get the next line of results from the ResultSet.
|
static String |
prettyPrint(SQLXML xml) |
static String |
resultSetMetaDataToString(ResultSetMetaData metadata,
String delimiter)
Get the first line from the result set.
|
read
public ResultSetReader(ResultSet in)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class StringLineReader
IOException
Reader.close()
protected String nextLine() throws IOException
nextLine
in class StringLineReader
IOException
public int getRowCount()
public static String resultSetMetaDataToString(ResultSetMetaData metadata, String delimiter) throws SQLException
SQLException
public static String prettyPrint(SQLXML xml) throws SQLException
SQLException
Copyright © 2017 JBoss by Red Hat. All rights reserved.