it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl
Class ContentStreamBasicDataImpl

java.lang.Object
  extended by it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.ContentStreamDataImpl
      extended by it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.ContentStreamBasicDataImpl
All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.data.ContentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData, org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream

public class ContentStreamBasicDataImpl
extends ContentStreamDataImpl
implements org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream


Constructor Summary
ContentStreamBasicDataImpl(DocumentContent fNativeVerObject)
           
 
Method Summary
 void appendContent(java.io.InputStream is)
           
 java.math.BigInteger getBigLength()
           
 org.apache.chemistry.opencmis.commons.data.ContentStream getCloneWithLimits(long offset, long length)
           
 java.lang.String getFilename()
           
 java.lang.String getFileName()
           
 java.util.GregorianCalendar getLastModified()
           
 long getLength()
           
 java.lang.String getMimeType()
           
 java.io.InputStream getStream()
           
 void setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
           
 void setContent(java.io.InputStream in)
           
 void setFileName(java.lang.String fileName)
           
 void setLastModified(java.util.GregorianCalendar lastModified)
           
 void setMimeType(java.lang.String fMimeType)
           
 
Methods inherited from class it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.ContentStreamDataImpl
getBytes, getExtensions, setExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Constructor Detail

ContentStreamBasicDataImpl

public ContentStreamBasicDataImpl(DocumentContent fNativeVerObject)
Method Detail

setContent

public void setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
                throws java.io.IOException
Overrides:
setContent in class ContentStreamDataImpl
Throws:
java.io.IOException

setContent

public void setContent(java.io.InputStream in)
                throws java.io.IOException
Overrides:
setContent in class ContentStreamDataImpl
Throws:
java.io.IOException

appendContent

public void appendContent(java.io.InputStream is)
                   throws java.io.IOException
Overrides:
appendContent in class ContentStreamDataImpl
Throws:
java.io.IOException

getLength

public long getLength()
Specified by:
getLength in interface org.apache.chemistry.opencmis.commons.data.ContentStream
Overrides:
getLength in class ContentStreamDataImpl

getBigLength

public java.math.BigInteger getBigLength()
Specified by:
getBigLength in interface org.apache.chemistry.opencmis.commons.data.ContentStream
Overrides:
getBigLength in class ContentStreamDataImpl

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface org.apache.chemistry.opencmis.commons.data.ContentStream
Overrides:
getMimeType in class ContentStreamDataImpl

setMimeType

public void setMimeType(java.lang.String fMimeType)
Overrides:
setMimeType in class ContentStreamDataImpl

getFileName

public java.lang.String getFileName()
Specified by:
getFileName in interface org.apache.chemistry.opencmis.commons.data.ContentStream
Overrides:
getFileName in class ContentStreamDataImpl

setFileName

public void setFileName(java.lang.String fileName)
Overrides:
setFileName in class ContentStreamDataImpl

getFilename

public java.lang.String getFilename()
Overrides:
getFilename in class ContentStreamDataImpl

getStream

public java.io.InputStream getStream()
Specified by:
getStream in interface org.apache.chemistry.opencmis.commons.data.ContentStream
Overrides:
getStream in class ContentStreamDataImpl

setLastModified

public void setLastModified(java.util.GregorianCalendar lastModified)
Overrides:
setLastModified in class ContentStreamDataImpl

getLastModified

public java.util.GregorianCalendar getLastModified()
Specified by:
getLastModified in interface org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
Overrides:
getLastModified in class ContentStreamDataImpl

getCloneWithLimits

public org.apache.chemistry.opencmis.commons.data.ContentStream getCloneWithLimits(long offset,
                                                                                   long length)
Overrides:
getCloneWithLimits in class ContentStreamDataImpl