|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An interface for a Document with associated content. In addition to properties, a ContentDocument contains a byte stream which may be stored in some private way by the Storage implementation or may be mapped to some object in an externally-visible repository. For example the content might be managed in a database along with the properties. Alternatively, the content might come from a resource managed by an HTTP server. A ContentDocument can function directly as a DataSource.
| Method Summary | |
boolean |
getCanRead()
Return true if the content can be read. |
boolean |
getCanWrite()
Return true if the content can be written. |
String |
getContentProvider()
Returns the name of the content provider for this specific document. |
String |
getContentType()
Return the MIME type of the content, in a string like text/plain or image/jpeg. |
InputStream |
getInputStream()
Return an InputStream to read the content. |
Date |
getLastModified()
Return last modification date for the content. |
long |
getLength()
Return the length of the content in bytes. |
OutputStream |
getOutputStream()
Return an OutputStream to write the content. |
Reader |
getReader()
Return a Reader for the content. |
Writer |
getWriter()
Return a Writer for the content. |
void |
setContentProvider(String name)
Sets the content provider of this specific document. |
void |
setContentType(String mimeType)
Set the MIME type of the content |
| Methods inherited from interface com.xerox.bantam.Document |
addMultiValue, addMultiValue, clearProperty, clearProperty, conformsTo, containsValue, containsValue, delete, enforceSchema, enforceSchema, flush, get_all_property_names, getDescriptors, getEnforcedSchemas, getID, getMultiValues, getMultiValues, getName, getPropertyNames, getPropertyNames, getPropertyValue, getPropertyValue, getStorage, getUnenforcedPropertyNames, isEnforced, propertyExists, propertyExists, removeValue, removeValue, setMultiValues, setMultiValues, setName, setPropertyValue, setPropertyValue, unenforceSchema |
| Methods inherited from interface javax.activation.DataSource |
getName |
| Method Detail |
public String getContentProvider()
throws StorageException
Storage for a list of valid
names).
public void setContentProvider(String name)
throws StorageException
name - The name of the content provider (see Storage for a list of
valid names).public String getContentType()
getContentType in interface javax.activation.DataSource
public void setContentType(String mimeType)
throws StorageException
public InputStream getInputStream()
throws IOException
getInputStream in interface javax.activation.DataSource
public OutputStream getOutputStream()
throws IOException
getOutputStream in interface javax.activation.DataSource
public Reader getReader()
throws StorageException
public Writer getWriter()
throws StorageException
public long getLength()
throws StorageException
public boolean getCanRead()
throws StorageException
public boolean getCanWrite()
throws StorageException
public Date getLastModified()
throws StorageException
|
Project Harland | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||