public class ContentStreamDataImpl extends Object implements LastModifiedContentStream
| Constructor and Description |
|---|
ContentStreamDataImpl(long maxAllowedContentSizeKB) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendContent(InputStream is) |
BigInteger |
getBigLength()
Returns the length of stream.
|
byte[] |
getBytes() |
ContentStream |
getCloneWithLimits(long offset,
long length) |
List<CmisExtensionElement> |
getExtensions() |
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 stream.
|
String |
getMimeType()
Returns the MIME type of the stream.
|
InputStream |
getStream()
Returns the stream.
|
void |
setContent(InputStream in) |
void |
setExtensions(List<CmisExtensionElement> extensions) |
void |
setFileName(String fileName) |
void |
setLastModified(GregorianCalendar lastModified) |
void |
setMimeType(String fMimeType) |
public void setContent(InputStream in) throws IOException
IOExceptionpublic void appendContent(InputStream is) throws IOException
IOExceptionpublic long getLength()
ContentStreamgetLength in interface ContentStream-1 if the
length is unknownpublic 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 fMimeType)
public String getFileName()
ContentStreamgetFileName in interface ContentStreamnull if the file name
is unknownpublic void setFileName(String fileName)
public String getFilename()
public InputStream getStream()
ContentStreamgetStream 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()
getExtensions in interface ExtensionsDatapublic void setExtensions(List<CmisExtensionElement> extensions)
setExtensions in interface ExtensionsDataCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.