org.outerj.daisy.repository.commonimpl
Class PartImpl

java.lang.Object
  extended byorg.outerj.daisy.repository.commonimpl.PartImpl
All Implemented Interfaces:
org.outerj.daisy.repository.Part

public class PartImpl
extends java.lang.Object
implements org.outerj.daisy.repository.Part


Nested Class Summary
 class PartImpl.IntimateAccess
           
 
Constructor Summary
PartImpl(DocumentVariantImpl.IntimateAccess ownerVariantInt, long partTypeId, long versionId)
           
 
Method Summary
 byte[] getData()
           
 java.io.InputStream getDataStream()
           
 java.lang.String getFileName()
           
 PartImpl.IntimateAccess getIntimateAccess(DocumentStrategy documentStrategy)
           
 java.lang.String getMimeType()
           
 long getSize()
           
 long getTypeId()
           
 java.lang.String getTypeName()
           
 org.outerx.daisy.x10.PartDocument getXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartImpl

public PartImpl(DocumentVariantImpl.IntimateAccess ownerVariantInt,
                long partTypeId,
                long versionId)
Method Detail

getIntimateAccess

public PartImpl.IntimateAccess getIntimateAccess(DocumentStrategy documentStrategy)

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface org.outerj.daisy.repository.Part

getFileName

public java.lang.String getFileName()
Specified by:
getFileName in interface org.outerj.daisy.repository.Part

getSize

public long getSize()
Specified by:
getSize in interface org.outerj.daisy.repository.Part

getData

public byte[] getData()
               throws org.outerj.daisy.repository.RepositoryException
Specified by:
getData in interface org.outerj.daisy.repository.Part
Throws:
org.outerj.daisy.repository.RepositoryException

getDataStream

public java.io.InputStream getDataStream()
                                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
getDataStream in interface org.outerj.daisy.repository.Part
Throws:
org.outerj.daisy.repository.RepositoryException

getTypeName

public java.lang.String getTypeName()
Specified by:
getTypeName in interface org.outerj.daisy.repository.Part

getTypeId

public long getTypeId()
Specified by:
getTypeId in interface org.outerj.daisy.repository.Part

getXml

public org.outerx.daisy.x10.PartDocument getXml()
Specified by:
getXml in interface org.outerj.daisy.repository.Part


Copyright © -2005 . All Rights Reserved.