|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.SQLBlob
public class SQLBlob
An object representing a SQL BLOB (Binary Large OBject).
Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.
SQLClobDataType
Constructor Summary | |
---|---|
SQLBlob()
Constructs a new instance. |
|
SQLBlob(byte[] value)
Constructs a new instance from the specified value. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
void |
free()
Releases the underlying data. |
InputStream |
getBinaryStream()
|
InputStream |
getBinaryStream(long pos,
long length)
Retrieves the value as a stream from the specified position. |
byte[] |
getBytes(long pos,
int length)
|
int |
hashCode()
|
long |
length()
|
long |
position(Blob pattern,
long start)
|
long |
position(byte[] pattern,
long start)
|
OutputStream |
setBinaryStream(long pos)
|
int |
setBytes(long pos,
byte[] bytes)
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
|
String |
toString()
|
void |
truncate(long len)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SQLBlob()
public SQLBlob(byte[] value)
value
- The byte array to use.Method Detail |
---|
public long length() throws SQLException
length
in interface Blob
SQLException
public void truncate(long len) throws SQLException
truncate
in interface Blob
SQLException
public byte[] getBytes(long pos, int length) throws SQLException
getBytes
in interface Blob
SQLException
public int setBytes(long pos, byte[] bytes) throws SQLException
setBytes
in interface Blob
SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
setBytes
in interface Blob
SQLException
public long position(byte[] pattern, long start) throws SQLException
position
in interface Blob
SQLException
public InputStream getBinaryStream() throws SQLException
getBinaryStream
in interface Blob
SQLException
public InputStream getBinaryStream(long pos, long length)
getBinaryStream
in interface Blob
pos
- The position to retrieve the data from.length
- The length of the desired stream.
BLOB
data.public OutputStream setBinaryStream(long pos) throws SQLException
setBinaryStream
in interface Blob
SQLException
public long position(Blob pattern, long start) throws SQLException
position
in interface Blob
SQLException
public void free()
free
in interface Blob
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |