it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl
Class ContentStreamDataImpl
java.lang.Object
it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.ContentStreamDataImpl
- All Implemented Interfaces:
- org.apache.chemistry.opencmis.commons.data.ContentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData, org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
- Direct Known Subclasses:
- ContentStreamBasicDataImpl
public class ContentStreamDataImpl
- extends java.lang.Object
- implements org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentStreamDataImpl
public ContentStreamDataImpl(long maxAllowedContentSizeKB)
setContent
public void setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
throws java.io.IOException
- Throws:
java.io.IOException
setContent
public void setContent(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
appendContent
public void appendContent(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
getLength
public long getLength()
- Specified by:
getLength
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
getBigLength
public java.math.BigInteger getBigLength()
- Specified by:
getBigLength
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
setMimeType
public void setMimeType(java.lang.String fMimeType)
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
setFileName
public void setFileName(java.lang.String fileName)
getFilename
public java.lang.String getFilename()
getStream
public java.io.InputStream getStream()
- Specified by:
getStream
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
setLastModified
public void setLastModified(java.util.GregorianCalendar lastModified)
getLastModified
public java.util.GregorianCalendar getLastModified()
- Specified by:
getLastModified
in interface org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
getCloneWithLimits
public org.apache.chemistry.opencmis.commons.data.ContentStream getCloneWithLimits(long offset,
long length)
getBytes
public final byte[] getBytes()
getExtensions
public java.util.List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getExtensions()
- Specified by:
getExtensions
in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
setExtensions
public void setExtensions(java.util.List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
- Specified by:
setExtensions
in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData