Here you can find the source of getExplainPlan(ResultSet rs)
public static String getExplainPlan(ResultSet rs) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static String getExplainPlan(ResultSet rs) throws SQLException { StringBuilder buf = new StringBuilder(); while (rs.next()) { buf.append(rs.getString(1)); buf.append('\n'); }//from ww w . ja v a 2 s . c o m if (buf.length() > 0) { buf.setLength(buf.length() - 1); } return buf.toString(); } }