org.jfree.repository
Interface ContentItem

All Superinterfaces:
ContentEntity
All Known Implementing Classes:
DummyContentItem, FileContentItem, StreamContentItem, ZipContentItem

public interface ContentItem
extends ContentEntity

A content item holds the actual content. On a file system, this would be a file. Whether reading and writing the same content item at the same time is allowed is implementation specific.

Author:
Thomas Morgner

Method Summary
 java.io.InputStream getInputStream()
           
 java.lang.String getMimeType()
           
 java.io.OutputStream getOutputStream()
           
 boolean isReadable()
           
 boolean isWriteable()
           
 
Methods inherited from interface org.jfree.repository.ContentEntity
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute
 

Method Detail

getMimeType

java.lang.String getMimeType()
                             throws ContentIOException
Throws:
ContentIOException

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws ContentIOException,
                                            java.io.IOException
Throws:
ContentIOException
java.io.IOException

getInputStream

java.io.InputStream getInputStream()
                                   throws ContentIOException,
                                          java.io.IOException
Throws:
ContentIOException
java.io.IOException

isReadable

boolean isReadable()

isWriteable

boolean isWriteable()