com.sybase.jdbcx
Interface TextPointer


public abstract interface TextPointer

Defines methods for highly efficient update of image (and, in some cases, text) columns. When used with a text column, the data is streamed directly to the server without conversion. Therefore, the binary data must be the correct representation of the desired text in the database's default character set.


Method Summary
 void sendData(byte[] byteInput, int offset, int length, boolean log)
          Sends image (or, with special provisos, text) data to the server from a byte array, specifying the offset and length.
 void sendData(InputStream is, boolean log)
          Sends image (or, with special provisos, text) data to the server from an input stream.
 void sendData(InputStream is, int length, boolean log)
          Sends image (or, with special provisos, text) data to the server from an input stream, specifying the length.
 void sendData(InputStream is, int offset, int length, boolean log)
          Sends image (or, with special provisos, text) data to the server from an input stream, specifying the offset and length.
 

Method Detail

sendData

public void sendData(InputStream is,
                     boolean log)
              throws SQLException
Sends image (or, with special provisos, text) data to the server from an input stream. This is more efficient than ResultSet.setXXXStream. When this method is used with a text column, the data is streamed directly to the server without conversion. Therefore, the binary data must be the correct representation of the desired text in the database's default character set.
Parameters:
is - the stream from which data is to be sent
log -  

sendData

public void sendData(InputStream is,
                     int length,
                     boolean log)
              throws SQLException
Sends image (or, with special provisos, text) data to the server from an input stream, specifying the length. This is more efficient than ResultSet.setXXXStream. When this method is used with a text column, the data is streamed directly to the server without conversion. Therefore, the binary data must be the correct representation of the desired text in the database's default character set.
Parameters:
is - the stream from which data is to be sent
length - the number of bytes(?) to send
log -  

sendData

public void sendData(InputStream is,
                     int offset,
                     int length,
                     boolean log)
              throws SQLException
Sends image (or, with special provisos, text) data to the server from an input stream, specifying the offset and length. This is more efficient than ResultSet.setXXXStream. When this method is used with a text column, the data is streamed directly to the server without conversion. Therefore, the binary data must be the correct representation of the desired text in the database's default character set.
Parameters:
is - the stream from which data is to be sent
offset - the offset in the stream from which to start sending(?)
length - the number of bytes(?) to send
log -  

sendData

public void sendData(byte[] byteInput,
                     int offset,
                     int length,
                     boolean log)
              throws SQLException
Sends image (or, with special provisos, text) data to the server from a byte array, specifying the offset and length. This is more efficient than ResultSet.setBytes. When this method is used with a text column, the data is streamed directly to the server without conversion. Therefore, the binary data must be the correct representation of the desired text in the database's default character set.
Parameters:
byteInput - the array from which data is to be sent
offset - the offset in the array from which to start sending(?)
length - the number of bytes(?) to send
log -