Java java.sql Blob fields, constructors, methods, implement or subclass

Example usage for Java java.sql Blob fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql Blob.

The text is from its open source code.

Implementation

java.sql.Blob has the following implementations.
Click this link to see all its implementation.

Method

voidfree()
This method frees the Blob object and releases the resources that it holds.
java.io.InputStreamgetBinaryStream()
Retrieves the BLOB value designated by this Blob instance as a stream.
InputStreamgetBinaryStream(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.
ClassgetClass()
Returns the runtime class of this Object .
longlength()
Returns the number of bytes in the BLOB value designated by this Blob object.
java.io.OutputStreamsetBinaryStream(long pos)
Retrieves a stream that can be used to write to the BLOB value that this Blob object represents.
intsetBytes(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.
intsetBytes(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.
StringtoString()
Returns a string representation of the object.
voidtruncate(long len)
Truncates the BLOB value that this Blob object represents to be len bytes in length.