|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fatwire.assetapi.data.BlobObjectImpl
public class BlobObjectImpl
Implementation class for BlobObject
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.fatwire.assetapi.data.BlobObject |
|---|
BlobObject.BlobAddress |
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
_logger
|
| Constructor Summary | |
|---|---|
BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes)
Constructs a BlobObject with filename, folder and binary |
|
BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
Constructs a BlobObject with filename, folder, binary and a blobAddress; this is primarily used for creating BlobObject from existing Content Server objects |
|
BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress,
boolean keepBytes)
Constructs a BlobObject with filename, folder, binary and a blobAddress; this is primarily used for creating BlobObject from existing Content Server objects |
|
BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
java.util.List<WebReference> webReferences,
byte[] bytes)
Constructs a BlobObject with filename, folder and binary |
|
BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
java.util.List<WebReference> webReferences,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
Constructs a BlobObject with filename, folder, binary and a blobAddress; this is primarily used for creating BlobObject from existing Content Server objects |
|
BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
java.util.List<WebReference> webReferences,
byte[] bytes,
BlobObject.BlobAddress blobAddress,
boolean keepBytes)
Constructs a BlobObject with filename, folder, binary and a blobAddress; this is primarily used for creating BlobObject from existing Content Server objects |
|
| 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 |
java.util.List<WebReference> |
getWebReferences()
Gets the WebReference related to this binary object |
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 |
void |
setWebReferences(java.util.List<WebReference> webReferences)
Sets the WebReference related to this binary object |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log _logger
| Constructor Detail |
|---|
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes)
filename - the name of the blobfolder - the folder of the blob - we normally expect full path namebytes - the binary of the blob
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
filename - the name of the blobfolder - the folder of the blob - we normally expect full path namebytes - the binary of the blobblobAddress - the blobAddress where the blob is residing in content server
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress,
boolean keepBytes)
filename - the name of the blobfolder - the folder of the blob - we normally expect full path namebytes - the binary of the blobblobAddress - the blobAddress where the blob is residing in content serverkeepBytes - instructs Content Server whether we should keep the binary passed in permanent in memory
or they could be removed when memory is low; true indicates that binary will always be kept in
memory.
CAUTION: keeping too much binary in memory would potentially cause out of memory errors
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
java.util.List<WebReference> webReferences,
byte[] bytes)
filename - the name of the blobfolder - the folder of the blob - we normally expect full path namewebreferences - the WebReferences of the blobbytes - the binary of the blob
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
java.util.List<WebReference> webReferences,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
filename - the name of the blobfolder - the folder of the blob - we normally expect full path namewebreferences - the WebReferences of the blobbytes - the binary of the blobblobAddress - the blobAddress where the blob is residing in content server
public BlobObjectImpl(java.lang.String filename,
java.lang.String folder,
java.util.List<WebReference> webReferences,
byte[] bytes,
BlobObject.BlobAddress blobAddress,
boolean keepBytes)
filename - the name of the blobfolder - the folder of the blob - we normally expect full path namewebreferences - the WebReferences of the blobbytes - the binary of the blobblobAddress - the blobAddress where the blob is residing in content serverkeepBytes - instructs Content Server whether we should keep the binary passed in permanent in memory
or they could be removed when memory is low; true indicates that binary will always be kept in
memory.
CAUTION: keeping too much binary in memory would potentially cause out of memory errors| Method Detail |
|---|
public java.lang.String getFilename()
BlobObject
getFilename in interface BlobObjectpublic java.lang.String getFoldername()
BlobObject
getFoldername in interface BlobObjectpublic java.io.InputStream getBinaryStream()
BlobObject
getBinaryStream in interface BlobObjectpublic BlobObject.BlobAddress getBlobAddress()
BlobObject
getBlobAddress in interface BlobObjectpublic void setBinaryData(byte[] bytes)
BlobObject
setBinaryData in interface BlobObjectbytes - the binarypublic void setFilename(java.lang.String filename)
BlobObject
setFilename in interface BlobObjectfilename - the fileNamepublic void setFoldername(java.lang.String foldername)
BlobObject
setFoldername in interface BlobObjectfoldername - folder namepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<WebReference> getWebReferences()
BlobObject
getWebReferences in interface BlobObjectpublic void setWebReferences(java.util.List<WebReference> webReferences)
BlobObject
setWebReferences in interface BlobObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||