The IfmxUDTSQLOutput interface
public void writeString(String str, int length) throws
SQLException;
public void writeBytes(byte[] b, int length) throws SQLException;
To use these methods, you must cast the SQLOutput references to IfmxUdtSQLOutput.
Use the writeString() method to write the next attribute to the stream as a Java™ string. If the string passed in is shorter than the specified length, Informix® JDBC Driver pads the string with zeros.
Use the writeBytes() method to write the next attribute to the stream as a Java™ byte array.
Both methods are similar to the SQLOutput.writeBytes() method except that a fixed length of data is written to the stream. If the array or string passed in is shorter than the specified length, Informix® JDBC Driver pads the array or string with zeros. In both methods, you must supply a length for Informix® JDBC Driver to write the next attribute properly, because the opaque type is unknown to the driver.