Example #1
0
 /**
  * Sets the input data to an <code>InputStream</code>..
  *
  * @param stream <code>InputStream</code> to use for next database save operation.
  * @param storageLength length to store.
  */
 public void setInput(InputStream stream, int storageLength) {
   this.inputType = INPUTTYPE_BINARYSTREAM;
   super.setInput(stream, storageLength);
 }
Example #2
0
 /**
  * Sets the input data to an <code>byte</code> array. Length is assumed to be the length of the
  * array.
  *
  * @param b <code>byte</code> array to use for next database save operation.
  */
 public void setInput(byte b[]) {
   this.inputType = INPUTTYPE_BYTES;
   super.setInput(b, b.length);
 }
Example #3
0
 /**
  * Sets the input data and underlying <code>Blob</code> object.
  *
  * @param blob <code>Blob</code> object to use for next database save operation.
  * @throws SQLException if thrown by <code>Blob.length()</code>.
  */
 public void setInput(Blob blob) throws SQLException {
   this.inputType = INPUTTYPE_BLOB;
   super.setInput(blob, (int) blob.length());
 }