|
Object Translator | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.informix.ormapper.OBlob
External: This is the utility class for manipulating a BLOB (binary large object) data type.
OClob
Constructor Summary | |
OBlob()
Constructs an empty BLOB object. |
|
OBlob(java.sql.Blob _blob)
Constructs a BLOB object from an existing java.sql.Blob
object. |
Method Summary | |
java.io.InputStream |
getBinaryStream()
Retrieves the BLOB data as a stream. |
java.sql.Blob |
getBlob()
Retrieves the java.sql.Blob object reference set in a setBlob()
call or a constructor. |
long |
length()
Returns the number of bytes in the BLOB data designated by this BLOB object. |
void |
load(java.lang.String fileName)
Loads the BLOB data from a file. |
void |
setBinaryStream(java.io.InputStream _in,
long _length)
Sets the BLOB data as an input stream. |
void |
setBlob(java.sql.Blob _blob)
Sets the BLOB data from an existing java.sql.Blob
object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public OBlob()
public OBlob(java.sql.Blob _blob)
java.sql.Blob
object._blob
- a java.sql.Blob
object.Method Detail |
public java.io.InputStream getBinaryStream() throws DatabaseException
null
if no BLOB or
input stream has been set yet.public void setBinaryStream(java.io.InputStream _in, long _length)
_in
- the data input stream._length
- the length of the data input stream.public long length() throws DatabaseException
-1
if there is
no data stream or BLOB data.public void load(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
- name of the file that contains BLOB data.public void setBlob(java.sql.Blob _blob)
java.sql.Blob
object._blob
- a java.sql.Blob
object.public java.sql.Blob getBlob()
java.sql.Blob
object reference set in a setBlob()
call or a constructor.java.sql.Blob
object representing BLOB data.
|
Object Translator | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |