com.fatwire.assetapi.data
Class BlobObjectImpl
java.lang.Object
com.fatwire.assetapi.data.BlobObjectImpl
- All Implemented Interfaces:
- BlobObject
public class BlobObjectImpl
- extends java.lang.Object
- implements BlobObject
Method Summary |
byte[] |
getBinary()
retrieves the binary related to this Binary Object |
BlobObject.BlobAddress |
getBlobAddress()
Returns the db address for a given blob object. |
java.lang.String |
getFilename()
Gets the filename related to this binary object |
java.lang.String |
getFoldername()
Gets the foler name of the binary Object; the value returned is the absolute path of where the blob/binary is stored |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlobObjectImpl
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes)
BlobObjectImpl
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
getFilename
public java.lang.String getFilename()
- Description copied from interface:
BlobObject
- Gets the filename related to this binary object
- Specified by:
getFilename
in interface BlobObject
- Returns:
- String the filename
getFoldername
public java.lang.String getFoldername()
- Description copied from interface:
BlobObject
- Gets the foler name of the binary Object; the value returned is the absolute path of where the blob/binary is stored
- Specified by:
getFoldername
in interface BlobObject
- Returns:
- String folder name
getBinary
public byte[] getBinary()
- Description copied from interface:
BlobObject
- retrieves the binary related to this Binary Object
- Specified by:
getBinary
in interface BlobObject
- Returns:
- byte[] the binary
getBlobAddress
public BlobObject.BlobAddress getBlobAddress()
- Description copied from interface:
BlobObject
- Returns the db address for a given blob object. For basic asset, it usually points to a row in the primary table
of the asset type. For flex asset, it is a row in MungoBlob table
- Specified by:
getBlobAddress
in interface BlobObject
- Returns:
- the table name, identifier(normally id) and column name of where the blob object is hold in database