public class RenditionImpl extends RenditionDataImpl implements Rendition
Rendition
.Constructor and Description |
---|
RenditionImpl(Session session,
String objectId,
String streamId,
String renditionDocumentId,
String kind,
long length,
String mimeType,
String title,
int height,
int width)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ContentStream |
getContentStream()
Returns the content stream of the rendition.
|
long |
getHeight()
Returns the height in pixels if the rendition is an image.
|
long |
getLength()
Returns the size of the rendition in bytes if available.
|
Document |
getRenditionDocument()
Returns the rendition document if the rendition is a stand-alone
document.
|
Document |
getRenditionDocument(OperationContext context)
Returns the rendition document using the provides
OperationContext if the rendition is a stand-alone document. |
long |
getWidth()
Returns the width in pixels if the rendition is an image.
|
getBigHeight, getBigLength, getBigWidth, getKind, getMimeType, getRenditionDocumentId, getStreamId, getTitle, setBigHeight, setBigLength, setBigWidth, setKind, setMimeType, setRenditionDocumentId, setStreamId, setTitle, toString
getExtensions, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBigHeight, getBigLength, getBigWidth, getKind, getMimeType, getRenditionDocumentId, getStreamId, getTitle
getExtensions, setExtensions
public long getLength()
Rendition
public long getHeight()
Rendition
public long getWidth()
Rendition
public Document getRenditionDocument()
Rendition
getRenditionDocument
in interface Rendition
null
if there is no rendition
documentpublic Document getRenditionDocument(OperationContext context)
Rendition
OperationContext
if the rendition is a stand-alone document.getRenditionDocument
in interface Rendition
null
if there is no rendition
documentpublic ContentStream getContentStream()
Rendition
getContentStream
in interface Rendition
null
if the
rendition has no contentCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.