List of utility methods to do SQL Clob
String | parseToString(Clob clob) clob parse to string return parseToString(clob, null);
|
String | read(Clob c) read StringBuilder sb = new StringBuilder((int) c.length()); Reader r = c.getCharacterStream(); char[] cbuf = new char[CLOBBUFFERSIZE]; int n; while ((n = r.read(cbuf, 0, cbuf.length)) != -1) { sb.append(cbuf, 0, n); return sb.toString(); ... |
String | readStringClob(Clob content) read String Clob if (content == null) { return null; Reader reader = content.getCharacterStream(); BufferedReader in = new BufferedReader(reader); StringBuilder rc = new StringBuilder(); char[] chars = new char[256]; int count; ... |