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 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 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
IOException
public void appendContent(InputStream is) throws IOException
IOException
public long getLength()
ContentStream
getLength
in interface ContentStream
public BigInteger getBigLength()
ContentStream
getBigLength
in interface ContentStream
null
if the length
is unknownpublic String getMimeType()
ContentStream
getMimeType
in interface ContentStream
null
if the MIME type is
unknownpublic void setMimeType(String mimeType)
public String getFileName()
ContentStream
getFileName
in interface ContentStream
null
if the file name is
unknownpublic void setFileName(String fileName)
public String getFilename()
public InputStream getStream()
ContentStream
It is important to close this stream properly!
getStream
in interface ContentStream
public void setLastModified(GregorianCalendar lastModified)
public GregorianCalendar getLastModified()
LastModifiedContentStream
getLastModified
in interface LastModifiedContentStream
public ContentStream getCloneWithLimits(long offset, long length)
public final byte[] getBytes()
public List<CmisExtensionElement> getExtensions()
ExtensionsData
getExtensions
in interface ExtensionsData
null
if no extension
are setpublic void setExtensions(List<CmisExtensionElement> extensions)
ExtensionsData
setExtensions
in interface ExtensionsData
extensions
- the list of extensions, may be null
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.