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
IOException
public void appendContent(InputStream is) throws IOException
IOException
public long getLength()
ContentStream
getLength
in interface ContentStream
-1
if the
length is unknownpublic 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 fMimeType)
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
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()
getExtensions
in interface ExtensionsData
public void setExtensions(List<CmisExtensionElement> extensions)
setExtensions
in interface ExtensionsData
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.