|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Image
An object that encapsulates an image. Each image has a unique ID and is made up of three parts: binary data (read and written using an InputStream), a name, and content type. An image might have a name "stockchart.gif" and corresponding content type of "image/gif".
The storage mechanism of images is controlled via the StorageManager; the
default implementation puts images in the database.
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Returns the content type of the image. |
java.util.Date |
getCreationDate()
Returns the date the image was created. |
java.io.InputStream |
getData()
Returns a InputStream for the binary contents of the image. |
JiveContentObject |
getJiveContentObject()
Returns the parent JiveContentObject of the image. |
java.util.Date |
getModificationDate()
Returns the date the image was last modified. |
java.lang.String |
getName()
Returns the name of the image. |
int |
getSize()
Returns the size of the image in bytes. |
void |
setName(java.lang.String name)
Sets the name of the image. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| Method Detail |
|---|
JiveContentObject getJiveContentObject()
JiveContentObject of the image.
JiveContentObject which contains the image.java.lang.String getContentType()
java.lang.String getName()
void setName(java.lang.String name)
throws UnauthorizedException
name - the new name of the image.
UnauthorizedException - if not allowed to modify the imageint getSize()
java.io.InputStream getData()
throws java.io.IOException
InputStream for the binary contents of the image. The stream
should be closed after reading the image is completed. The InputStream will already be
buffered, so there is no advantage to using additional buffering.
java.io.IOException - if an error occurs reading the image from storage.java.util.Date getCreationDate()
java.util.Date getModificationDate()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||