Here you can find the source of getClobToString(Clob clob)
public static String getClobToString(Clob clob)
//package com.java2s; import java.sql.Clob; import java.sql.SQLException; public class Main { public static String getClobToString(Clob clob) { if (clob != null) { try { return clob.getSubString((long) 1, (int) clob.length()); } catch (SQLException e) { e.printStackTrace();/* w w w. j a v a 2 s .c o m*/ } } return null; } }