org.jfree.repository.stream
Class StreamContentItem

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

public class StreamContentItem
extends java.lang.Object
implements ContentItem

Creation-Date: 13.11.2006, 17:27:04

Author:
Thomas Morgner

Constructor Summary
StreamContentItem(java.lang.String name, ContentLocation parent, WrappedInputStream inputStream, WrappedOutputStream outputStream)
           
 
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

StreamContentItem

public StreamContentItem(java.lang.String name,
                         ContentLocation parent,
                         WrappedInputStream inputStream,
                         WrappedOutputStream outputStream)
Method Detail

isReadable

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

isWriteable

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

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

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

getParent

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

getRepository

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

delete

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