org.jfree.repository.file
Class FileContentItem

java.lang.Object
  extended by org.jfree.repository.file.FileContentEntity
      extended by org.jfree.repository.file.FileContentItem
All 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, java.io.File backend)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.lang.String getMimeType()
           
 java.io.OutputStream getOutputStream()
           
 boolean isReadable()
           
 boolean isWriteable()
           
 
Methods inherited from class org.jfree.repository.file.FileContentEntity
delete, getAttribute, getBackend, getContentId, getName, getParent, getRepository, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.repository.ContentEntity
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute
 

Constructor Detail

FileContentItem

public FileContentItem(ContentLocation parent,
                       java.io.File backend)
Method Detail

getMimeType

public java.lang.String getMimeType()
                             throws ContentIOException
Specified by:
getMimeType in interface ContentItem
Throws:
ContentIOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws ContentIOException,
                                            java.io.IOException
Specified by:
getOutputStream in interface ContentItem
Throws:
ContentIOException
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws ContentIOException,
                                          java.io.IOException
Specified by:
getInputStream in interface ContentItem
Throws:
ContentIOException
java.io.IOException

isReadable

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

isWriteable

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