com.cloudera.sqoop.util
Class ResultSetPrinter

java.lang.Object
  extended by com.cloudera.sqoop.util.ResultSetPrinter

public class ResultSetPrinter
extends java.lang.Object

Utility methods to format and print ResultSet objects.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
ResultSetPrinter()
           
 
Method Summary
 void printResultSet(java.io.PrintWriter pw, java.sql.ResultSet results)
          Format the contents of the ResultSet into something that could be printed neatly; the results are appended to the supplied StringBuilder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

ResultSetPrinter

public ResultSetPrinter()
Method Detail

printResultSet

public final void printResultSet(java.io.PrintWriter pw,
                                 java.sql.ResultSet results)
                          throws java.io.IOException
Format the contents of the ResultSet into something that could be printed neatly; the results are appended to the supplied StringBuilder.

Throws:
java.io.IOException


Copyright © 2010 Cloudera, Inc.