Read data
The readString() method reads the next attribute
in the stream as a Java™ string.
The readBytes() method reads the next attribute
in the stream as a Java byte
array. Both methods are similar to the SQLInput.readBytes() method
except that a fixed length of data is read in:
public String readString(int maxlen) throws SQLException; public byte[] readBytes(int maxlen) throws SQLException;
In both methods, you must supply a length for HCL OneDB™ JDBC Driver to read the next attribute properly, because the characteristics of the opaque type are unknown to the driver. The maxlen parameter specifies the maximum length of data to read in.