// if the incoming Clob is a wrapper, just pass along its CharacterStream
return (X) ( (NClobImplementer) value ).getUnderlyingStream();
}
else {
// otherwise we need to build one...
return (X) new CharacterStreamImpl( DataHelper.extractString( value ) );
}
}
final NClob clob = WrappedNClob.class.isInstance( value )
? ( (WrappedNClob) value ).getWrappedNClob()