org.jfree.repository

Interface ContentItem

All Superinterfaces:
ContentEntity
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

InputStream
getInputStream()
String
getMimeType()
OutputStream
getOutputStream()
boolean
isReadable()
boolean
isWriteable()

Methods inherited from interface org.jfree.repository.ContentEntity

delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute

Method Details

getInputStream

public InputStream getInputStream()
            throws ContentIOException,
                   IOException

getMimeType

public String getMimeType()
            throws ContentIOException

getOutputStream

public OutputStream getOutputStream()
            throws ContentIOException,
                   IOException

isReadable

public boolean isReadable()

isWriteable

public boolean isWriteable()