Here you can find the source of getString(Clob c)
public static String getString(Clob c)
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.IOException; import java.sql.Clob; import java.sql.SQLException; public class Main { public static String getString(Clob c) { StringBuffer s = new StringBuffer(); if (c != null) { try { BufferedReader bufferRead = new BufferedReader( c.getCharacterStream()); try { String str;//from w w w.j a v a2s . c o m while ((str = bufferRead.readLine()) != null) { s.append(str); } } catch (IOException e) { e.printStackTrace(); } } catch (SQLException e) { e.printStackTrace(); } } return s.toString(); } }