public class BlobObject extends DbObject
Modifier and Type | Field and Description |
---|---|
Object |
getBlob
Object representation of the blob.
|
Constructor and Description |
---|
BlobObject()
Constructor.
|
BlobObject(byte[] blob)
Constructor.
|
BlobObject(Object object)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlob()
Returns the byte representation of the object.
|
void |
setBlob(byte[] blob)
Sets the byte representation of the object.
|
Object |
unBlob()
Returns the object represented by this blob.
|
getFirstLevel, getId, readDBMode, setFirstLevel, setId, writeDBMode
jdoZooEvict, jdoZooGetBackup, jdoZooGetClassDef, jdoZooGetContext, jdoZooGetNode, jdoZooGetOid, jdoZooGetTimestamp, jdoZooHasState, jdoZooInit, jdoZooIsDeleted, jdoZooIsDetached, jdoZooIsDirty, jdoZooIsNew, jdoZooIsPersistent, jdoZooIsStateHollow, jdoZooIsTransactional, jdoZooMarkClean, jdoZooMarkDeleted, jdoZooMarkDetached, jdoZooMarkDirty, jdoZooMarkHollow, jdoZooMarkTransient, jdoZooSetOid, jdoZooSetTimestamp, toString, zooActivateRead, zooActivateWrite, zooActivateWrite
public Object getBlob
public BlobObject(Object object) throws IOException
object
- the object represented in this blob.IOException
- exception thrown whenever an error occurred while getting the byte representation of the objectpublic BlobObject()
public BlobObject(byte[] blob)
blob
- the byte representation of the object.public void setBlob(byte[] blob)
blob
- the blob as byte arraypublic byte[] getBlob()
public Object unBlob() throws IOException
IOException
- exception thrown whenever an error occurred while reading the object from its byte representationCopyright © 2019. All rights reserved.