org.jfree.repository.file

Class FileContentItem

Implemented Interfaces:
ContentEntity, ContentItem

public class FileContentItem
extends FileContentEntity
implements ContentItem

Creation-Date: 13.11.2006, 12:17:21
Author:
Thomas Morgner

Constructor Summary

FileContentItem(ContentLocation parent, File backend)

Method Summary

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

Methods inherited from class org.jfree.repository.file.FileContentEntity

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

Constructor Details

FileContentItem

public FileContentItem(ContentLocation parent,
                       File backend)

Method Details

getInputStream

public InputStream getInputStream()
            throws ContentIOException,
                   IOException
Specified by:
getInputStream in interface ContentItem

getMimeType

public String getMimeType()
            throws ContentIOException
Specified by:
getMimeType in interface ContentItem

getOutputStream

public OutputStream getOutputStream()
            throws ContentIOException,
                   IOException
Specified by:
getOutputStream in interface ContentItem

isReadable

public boolean isReadable()
Specified by:
isReadable in interface ContentItem

isWriteable

public boolean isWriteable()
Specified by:
isWriteable in interface ContentItem