@Exported public class BlobObjectImpl extends Object implements BlobObject
BlobObject.BlobAddress| Constructor and Description |
|---|
BlobObjectImpl(String filename,
String folder,
byte[] bytes)
Constructs a BlobObject with the specified filename, folder and binary
|
BlobObjectImpl(String filename,
String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
Constructs a BlobObject with the specified filename, folder, binary and blobAddress, primarily used for
creating BlobObject from existing Content Server objects
|
BlobObjectImpl(String filename,
String folder,
byte[] bytes,
BlobObject.BlobAddress blobAddress,
boolean keepBytes)
Constructs a BlobObject with the specified filename, folder, binary and blobAddress, primarily used for
creating BlobObject from existing Content Server objects
|
BlobObjectImpl(String filename,
String folder,
List<WebReference> webReferences,
byte[] bytes)
Constructs a BlobObject with the specified filename, folder and binary
|
BlobObjectImpl(String filename,
String folder,
List<WebReference> webReferences,
byte[] bytes,
BlobObject.BlobAddress blobAddress)
Constructs a BlobObject with the specified filename, folder, binary and blobAddress, primarily used for
creating BlobObject from existing Content Server objects
|
BlobObjectImpl(String filename,
String folder,
List<WebReference> webReferences,
byte[] bytes,
BlobObject.BlobAddress blobAddress,
boolean keepBytes)
Constructs a BlobObject with the specified filename, folder, binary and blobAddress, primarily used for
creating BlobObject from existing Content Server objects
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBinaryStream()
Retrieves the binary related to this Binary Object.
|
BlobObject.BlobAddress |
getBlobAddress()
Returns the db address for a given blob object.
|
String |
getFilename()
Gets the filename related to this binary object.
|
String |
getFoldername()
Gets the folder name of the binary Object; the value returned is the absolute path of where the blob/binary is stored.
|
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(String filename)
Sets the filename related to this binary object.
|
void |
setFoldername(String foldername)
Sets the folder name of the binary Object; the value returned is the absolute path of where the blob/binary is stored.
|
void |
setWebReferences(List<WebReference> webReferences)
Sets the WebReference related to this binary object.
|
String |
toString() |
public BlobObjectImpl(String filename, 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 blobpublic BlobObjectImpl(String filename, 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 serverpublic BlobObjectImpl(String filename, 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 errorspublic BlobObjectImpl(String filename, String folder, 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 blobpublic BlobObjectImpl(String filename, String folder, 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 serverpublic BlobObjectImpl(String filename, String folder, 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 errorspublic String getFilename()
BlobObjectgetFilename in interface BlobObjectpublic String getFoldername()
BlobObjectgetFoldername in interface BlobObjectpublic InputStream getBinaryStream()
BlobObjectgetBinaryStream in interface BlobObjectpublic BlobObject.BlobAddress getBlobAddress()
BlobObjectgetBlobAddress in interface BlobObjectpublic void setBinaryData(byte[] bytes)
BlobObjectsetBinaryData in interface BlobObjectbytes - the binary.public void setFilename(String filename)
BlobObjectsetFilename in interface BlobObjectfilename - the fileName.public void setFoldername(String foldername)
BlobObjectsetFoldername in interface BlobObjectfoldername - folder name.public List<WebReference> getWebReferences()
BlobObjectgetWebReferences in interface BlobObjectpublic void setWebReferences(List<WebReference> webReferences)
BlobObjectsetWebReferences in interface BlobObjectwebReferences - the webReference.