All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
SerialBlob

  • Method Summary

    default void

    close()

    Closes and releases the resources held by this Blob object.

    void

    free()

    Closes and releases the resources held by this Blob object.

    Retrieves the BLOB value designated by this Blob instance as a stream.

    getBinaryStream(long pos, long length)

    Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.

    byte[]

    getBytes(long pos, int length)

    Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes.

    long

    length()

    Returns the number of bytes in the BLOB value designated by this Blob object.

    long

    position(byte[] pattern, long start)

    Retrieves the byte position at which the specified byte array pattern begins within the BLOB value that this Blob object represents.

    long

    position(Blob pattern, long start)

    Retrieves the byte position in the BLOB value designated by this Blob object at which pattern begins.

    setBinaryStream(long pos)

    Retrieves a stream that can be used to write to the BLOB value that this Blob object represents.

    int

    setBytes(long pos, byte[] bytes)

    Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written.

    int

    setBytes(long pos, byte[] bytes, int offset, int len)

    Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written.

    void

    truncate(long len)

    Truncates the BLOB value that this Blob object represents to be len bytes in length.

  • Method Details

    • length

    • getBytes

    • getBinaryStream

    • position

    • position

    • setBytes

    • setBytes

    • setBinaryStream

    • truncate

    • free

    • getBinaryStream

    • close