*/
public Object transformDirect(Object value) throws TransformationException {
ClobType source = (ClobType)value;
try {
BufferedReader reader = new BufferedReader (source.getCharacterStream());
StringBuffer contents = new StringBuffer();
int chr = reader.read();
while (chr != -1 && contents.length() < DataTypeManager.MAX_STRING_LENGTH) {
contents.append((char)chr);
chr = reader.read();
}
reader.close();
return contents.toString();
} catch (SQLException e) {
throw new TransformationException(e, CorePlugin.Util.getString("failed_convert", new Object[] {getSourceType().getName(), getTargetType().getName()})); //$NON-NLS-1$
} catch(IOException e) {