public class ContentStreamDataImpl extends Object implements LastModifiedContentStream
| Constructor and Description |
|---|
ContentStreamDataImpl(long maxAllowedContentSizeKB) |
ContentStreamDataImpl(long maxAllowedContentSizeKB,
boolean doNotStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendContent(InputStream is) |
BigInteger |
getBigLength()
Returns the length of the stream.
|
byte[] |
getBytes() |
ContentStream |
getCloneWithLimits(long offset,
long length) |
List<CmisExtensionElement> |
getExtensions()
Returns the list of top-level extension elements.
|
String |
getFilename() |
String |
getFileName()
Returns the file name of the stream.
|
GregorianCalendar |
getLastModified()
Returns the last modified date of this content.
|
long |
getLength()
Returns the length of the stream.
|
String |
getMimeType()
Returns the MIME type of the stream.
|
InputStream |
getStream()
Returns the stream.
|
void |
setContent(InputStream in) |
void |
setExtensions(List<CmisExtensionElement> extensions)
Sets the list of top-level extension elements.
|
void |
setFileName(String fileName) |
void |
setLastModified(GregorianCalendar lastModified) |
void |
setMimeType(String mimeType) |
public ContentStreamDataImpl(long maxAllowedContentSizeKB)
public ContentStreamDataImpl(long maxAllowedContentSizeKB,
boolean doNotStore)
public void setContent(InputStream in) throws IOException
IOExceptionpublic void appendContent(InputStream is) throws IOException
IOExceptionpublic long getLength()
ContentStreamgetLength in interface ContentStreampublic BigInteger getBigLength()
ContentStreamgetBigLength in interface ContentStreamnull if the length
is unknownpublic String getMimeType()
ContentStreamgetMimeType in interface ContentStreamnull if the MIME type is
unknownpublic void setMimeType(String mimeType)
public String getFileName()
ContentStreamgetFileName in interface ContentStreamnull if the file name is
unknownpublic void setFileName(String fileName)
public String getFilename()
public InputStream getStream()
ContentStreamIt is important to close this stream properly!
getStream in interface ContentStreampublic void setLastModified(GregorianCalendar lastModified)
public GregorianCalendar getLastModified()
LastModifiedContentStreamgetLastModified in interface LastModifiedContentStreampublic ContentStream getCloneWithLimits(long offset, long length)
public final byte[] getBytes()
public List<CmisExtensionElement> getExtensions()
ExtensionsDatagetExtensions in interface ExtensionsDatanull if no extension
are setpublic void setExtensions(List<CmisExtensionElement> extensions)
ExtensionsDatasetExtensions in interface ExtensionsDataextensions - the list of extensions, may be nullCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.