|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.FBCachedBlob
This class represents a cached blob field.
| Constructor Summary | |
FBCachedBlob(byte[] data)
Create an instance using the cached data. |
|
| Method Summary | |
java.io.InputStream |
getBinaryStream()
Get contents of blob as binary stream. |
byte[] |
getBytes(long pos,
int length)
Get part of the blob field. |
long |
length()
Get the length of the cached blob field. |
long |
position(java.sql.Blob pattern,
long start)
Find the first entry of the specified pattern. |
long |
position(byte[] pattern,
long start)
Find the first entry of the specified pattern. |
java.io.OutputStream |
setBinaryStream(long pos)
Set the contents of blob as binary stream. |
int |
setBytes(long l,
byte[] abyte0)
Set contents of the blob. |
int |
setBytes(long l,
byte[] abyte0,
int i,
int j)
Set the contents of blob. |
void |
truncate(long length)
Truncate the blob to specified length. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FBCachedBlob(byte[] data)
data - array of bytes containing the cached data.| Method Detail |
public long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLException
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobpos - starting position to copy.length - amount of bytes to copy.
java.sql.SQLException
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException - always, not yet implemented.
public long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException - always, not yet implemented.
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLException
public int setBytes(long l,
byte[] abyte0)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException - always, set methods are not relevant in cached
state.
public int setBytes(long l,
byte[] abyte0,
int i,
int j)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException - always, set methods are not relevant in cached
state.
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLException - always, set methods are not relevant in cached
state.
public void truncate(long length)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLException - always, truncate is not relevant in cached state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||