com.fatwire.assetapi.data
Interface BlobObject

All Known Implementing Classes:
BlobObjectImpl

public interface BlobObject

This interface represents an attribute data of BLOB/URL type.


Nested Class Summary
static interface BlobObject.BlobAddress
          This interface represent the address information of a corresponding BlobObject.
 
Method Summary
 java.io.InputStream getBinaryStream()
          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
 void setBinaryData(byte[] bytes)
          sets the binary related to this Binary Object
 void setFilename(java.lang.String filename)
          Sets the filename related to this binary object
 void setFoldername(java.lang.String foldername)
          Sets the foler name of the binary Object; the value returned is the absolute path of where the blob/binary is stored
 

Method Detail

getFilename

java.lang.String getFilename()
Gets the filename related to this binary object

Returns:
String the filename

setFilename

void setFilename(java.lang.String filename)
Sets the filename related to this binary object

Parameters:
filename - the fileName

getFoldername

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

Returns:
String folder name

setFoldername

void setFoldername(java.lang.String foldername)
Sets the foler name of the binary Object; the value returned is the absolute path of where the blob/binary is stored

Parameters:
foldername - folder name

getBinaryStream

java.io.InputStream getBinaryStream()
retrieves the binary related to this Binary Object

Returns:
InputStream of the binary

setBinaryData

void setBinaryData(byte[] bytes)
sets the binary related to this Binary Object

Parameters:
bytes - the binary

getBlobAddress

BlobObject.BlobAddress getBlobAddress()
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

Returns:
the table name, identifier(normally id) and column name of where the blob object is hold in database


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.