请建议从数据为XML的Oracle 10g数据库中检索CLOB数据的有效方法,如果数据在GB中,则提供相同的完整内容,
Clob myclob = null;
myClob= resultSet.getClob("XML_DATA");
InputStream inputstream = myClob.getAsciiStream();
StringWriter writer = new StringWriter();
IOUtils.copy(inputstream, writer);
myXmlData = writer.toString().trim();
(或)
String myXml= resultSet.getString("XML_DATA");