org.jfree.repository.zipwriter
Class ZipContentItem

java.lang.Object
  extended by org.jfree.repository.zipwriter.ZipContentItem
All Implemented Interfaces:
ContentEntity, ContentItem

public class ZipContentItem
extends java.lang.Object
implements ContentItem

Creation-Date: 01.12.2006, 21:23:25

Author:
Thomas Morgner

Constructor Summary
ZipContentItem(java.lang.String name, ZipRepository repository, ZipContentLocation parent)
           
 
Method Summary
 boolean delete()
           
 java.lang.Object getAttribute(java.lang.String domain, java.lang.String key)
           
 java.lang.Object getContentId()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getMimeType()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 ContentLocation getParent()
           
 Repository getRepository()
           
 boolean isReadable()
           
 boolean isWriteable()
           
 boolean setAttribute(java.lang.String domain, java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipContentItem

public ZipContentItem(java.lang.String name,
                      ZipRepository repository,
                      ZipContentLocation parent)
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

getName

public java.lang.String getName()
Specified by:
getName in interface ContentEntity

getContentId

public java.lang.Object getContentId()
Specified by:
getContentId in interface ContentEntity

getAttribute

public java.lang.Object getAttribute(java.lang.String domain,
                                     java.lang.String key)
Specified by:
getAttribute in interface ContentEntity

setAttribute

public boolean setAttribute(java.lang.String domain,
                            java.lang.String key,
                            java.lang.Object value)
Specified by:
setAttribute in interface ContentEntity

getRepository

public Repository getRepository()
Specified by:
getRepository in interface ContentEntity

getParent

public ContentLocation getParent()
Specified by:
getParent in interface ContentEntity

delete

public boolean delete()
Specified by:
delete in interface ContentEntity