public interface SQLUDTInput
extends java.sql.SQLInput
This SQLUDTInput interface extends from SQLInput. This interface is specificly used for Informix User Defined Types. It contains Informix extension methods for serializing/deserializing fixed length data.
| Modifier and Type | Method and Description |
|---|---|
int |
length()
Get the total length of the entire data stream.
|
byte[] |
readBytes(int maxlen)
Read the next attribute in the stream as Java byte array.
|
Interval |
readInterval()
Read the next attribute in the stream as a Java Interval.
|
java.lang.String |
readString(int maxlen)
Read the next attribute in the stream as a Java String.
|
readArray, readAsciiStream, readBigDecimal, readBinaryStream, readBlob, readBoolean, readByte, readBytes, readCharacterStream, readClob, readDate, readDouble, readFloat, readInt, readLong, readNClob, readNString, readObject, readRef, readRowId, readShort, readSQLXML, readString, readTime, readTimestamp, readURL, wasNullint length()
Get the total length of the entire data stream.
java.lang.String readString(int maxlen)
throws java.sql.SQLException
Read the next attribute in the stream as a Java String. This method is similar to SQLInput.readString() with the exception that a fixed length of data is read in. This method replaces SQLInput.readString() in the UDT implementation since the user defined type is unknown to the driver, the user MUST supply a length in order for the driver to read in the next attribute properly.
maxlen - the maximum size of data to read in.java.sql.SQLExceptionbyte[] readBytes(int maxlen)
throws java.sql.SQLException
maxlen - the maximum size of data to read in.java.sql.SQLExceptionInterval readInterval() throws java.sql.SQLException
java.sql.SQLException