org.apache.chemistry.opencmis.commons.data
Interface ContentStream

All Superinterfaces:
ExtensionsData

public interface ContentStream
extends ExtensionsData

Content stream.


Method Summary
 BigInteger getBigLength()
          Returns the length of stream.
 String getFileName()
          Returns the file name of the stream.
 long getLength()
          Returns the length of stream.
 String getMimeType()
          Returns the MIME type of the stream.
 InputStream getStream()
          Returns the stream.
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Method Detail

getLength

long getLength()
Returns the length of stream.

Returns:
the length of the stream in bytes or -1 if the length is unknown

getBigLength

BigInteger getBigLength()
Returns the length of stream.

Returns:
the length of the stream in bytes or null if the length is unknown

getMimeType

String getMimeType()
Returns the MIME type of the stream.

Returns:
the MIME type of the stream or null if the MIME type is unknown

getFileName

String getFileName()
Returns the file name of the stream.

Returns:
the file name of the stream or null if the file name is unknown

getStream

InputStream getStream()
Returns the stream. It is important to close this stream properly!



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.