Package com.flowable.rendition
Class BaseContentConverter
- java.lang.Object
 - 
- com.flowable.rendition.BaseContentConverter
 
 
- 
- All Implemented Interfaces:
 RenditionConverter
public abstract class BaseContentConverter extends Object implements RenditionConverter
- Author:
 - Yvo Swillens
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static StringPDF_RENDITION_MIME_TYPEprotected static StringPDF_RENDITION_PREFIXprotected static StringPDF_RENDITION_SUFFIXprotected static StringTHUMBNAIL_RENDITION_MIME_TYPEprotected static StringTHUMBNAIL_RENDITION_PREFIXprotected static StringTHUMBNAIL_RENDITION_SUFFIX 
- 
Constructor Summary
Constructors Constructor Description BaseContentConverter() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddSupportedContentType(String contentType)protected abstract voidcreatePDFRendition(InputStream is, OutputStream renditionOutputStream)protected abstract voidcreateThumbnailRendition(InputStream is, OutputStream renditionOutputStream)ContentRenditiongeneratePDF(InputStream is)ContentRenditiongenerateThumbnail(InputStream is)StringgetPdfRenditionMimeType()protected abstract List<String>getSupportedContentTypes()StringgetThumbnailRenditionMimeType()booleanhandlesContentType(String contentType)abstract booleanisPDFRenditionSupported()abstract booleanisThumbnailRenditionSupported()abstract voidsetSupportedContentTypes(List<String> supportedContentTypes) 
 - 
 
- 
- 
Field Detail
- 
PDF_RENDITION_PREFIX
protected static final String PDF_RENDITION_PREFIX
- See Also:
 - Constant Field Values
 
 
- 
PDF_RENDITION_SUFFIX
protected static final String PDF_RENDITION_SUFFIX
- See Also:
 - Constant Field Values
 
 
- 
PDF_RENDITION_MIME_TYPE
protected static final String PDF_RENDITION_MIME_TYPE
- See Also:
 - Constant Field Values
 
 
- 
THUMBNAIL_RENDITION_PREFIX
protected static final String THUMBNAIL_RENDITION_PREFIX
- See Also:
 - Constant Field Values
 
 
- 
THUMBNAIL_RENDITION_SUFFIX
protected static final String THUMBNAIL_RENDITION_SUFFIX
- See Also:
 - Constant Field Values
 
 
- 
THUMBNAIL_RENDITION_MIME_TYPE
protected static final String THUMBNAIL_RENDITION_MIME_TYPE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
generatePDF
public ContentRendition generatePDF(InputStream is) throws Exception
- Specified by:
 generatePDFin interfaceRenditionConverter- Throws:
 Exception
 
- 
generateThumbnail
public ContentRendition generateThumbnail(InputStream is) throws Exception
- Specified by:
 generateThumbnailin interfaceRenditionConverter- Throws:
 Exception
 
- 
handlesContentType
public boolean handlesContentType(String contentType)
- Specified by:
 handlesContentTypein interfaceRenditionConverter
 
- 
getPdfRenditionMimeType
public String getPdfRenditionMimeType()
- Specified by:
 getPdfRenditionMimeTypein interfaceRenditionConverter
 
- 
getThumbnailRenditionMimeType
public String getThumbnailRenditionMimeType()
- Specified by:
 getThumbnailRenditionMimeTypein interfaceRenditionConverter
 
- 
isPDFRenditionSupported
public abstract boolean isPDFRenditionSupported()
- Specified by:
 isPDFRenditionSupportedin interfaceRenditionConverter
 
- 
isThumbnailRenditionSupported
public abstract boolean isThumbnailRenditionSupported()
- Specified by:
 isThumbnailRenditionSupportedin interfaceRenditionConverter
 
- 
addSupportedContentType
public abstract void addSupportedContentType(String contentType)
- Specified by:
 addSupportedContentTypein interfaceRenditionConverter
 
- 
setSupportedContentTypes
public abstract void setSupportedContentTypes(List<String> supportedContentTypes)
- Specified by:
 setSupportedContentTypesin interfaceRenditionConverter
 
- 
createPDFRendition
protected abstract void createPDFRendition(InputStream is, OutputStream renditionOutputStream) throws Exception
- Throws:
 Exception
 
- 
createThumbnailRendition
protected abstract void createThumbnailRendition(InputStream is, OutputStream renditionOutputStream) throws Exception
- Throws:
 Exception
 
 - 
 
 -