public class EnhancedObjectContent
extends java.lang.Object
Member Variable | Description |
name name |
The name, usually a filename, of this content object. |
String mimeType |
MIME type of this content object. |
DataHandler content |
The content/data in the form of a DataHandler . |
Constructor and Description |
---|
EnhancedObjectContent() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getContent()
Get the content/data in the form of a
DataHandler . |
java.lang.String |
getMimeType()
Get the MIME type of this content object.
|
java.util.Date |
getModifiedDate()
Get the last modified date of the content.
|
java.lang.String |
getName()
Get the name, usually a filename, of this content object.
|
long |
getSize()
Get the size (in bytes) of the content.
|
void |
setContent(java.io.InputStream content) |
void |
setMimeType(java.lang.String mimeType) |
void |
setModifiedDate(java.util.Date modifiedDate) |
void |
setName(java.lang.String name) |
void |
setSize(long size) |
public java.io.InputStream getContent()
DataHandler
.
The DataHandler.getInputStream()
method can be used to
retrieve the data.public void setContent(java.io.InputStream content)
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
public java.lang.String getName()
public void setName(java.lang.String name)
public long getSize()
public void setSize(long size)
public java.util.Date getModifiedDate()
public void setModifiedDate(java.util.Date modifiedDate)