Public Methods in TextPointer Class

Review the public methods in TextPointer class in jConnect.

The com.sybase.jdbcx package contains the TextPointer class. Its public method interface is:
public void sendData(InputStream is, boolean log) 
   throws SQLException
public void sendData(InputStream is, int length,
   boolean log) throws SQLException
public void sendData(InputStream is, int offset, 
   int length, boolean log) throws SQLException
public void sendData(byte[] byteInput, int offset, 
   int length, boolean log) throws SQLEXception
where:
  • sendData(InputStream is, boolean log) updates an image column with data in the specified input stream.

  • sendData(InputStream is, int length, boolean log) updates an image column with data in the specified input stream. length is the number of bytes being sent.

  • sendData(InputStream is , int offset, int length, boolean log) updates an image column with data in the specified input stream, starting at the byte offset given in the offset parameter and continuing for the number of bytes specified in the length parameter.

  • sendData(byte[ ] byteInput, int offset, int length, boolean log) updates a column with image data contained in the byte array specified in the byteInput parameter. The update starts at the byte offset given in the offset parameter and continues for the number of bytes specified in the length parameter.

  • log is a parameter for each method that specifies whether image data is to be fully logged in the database transaction log. If the log parameter is true, the entire binary image is written into the transaction log. If the log parameter is false, the update is logged, but the image itself is not included in the log.