Package com.flowable.rendition
Class BaseContentConverter
java.lang.Object
com.flowable.rendition.BaseContentConverter
- All Implemented Interfaces:
RenditionConverter
- Direct Known Subclasses:
PlatformRenditionConverter
- Author:
- Yvo Swillens
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddSupportedContentType(String contentType) protected abstract voidcreatePDFRendition(InputStream is, OutputStream renditionOutputStream) protected abstract voidcreateThumbnailRendition(InputStream is, OutputStream renditionOutputStream) booleanhandlesContentType(String contentType) abstract booleanabstract booleanabstract voidsetSupportedContentTypes(List<String> supportedContentTypes)
-
Field Details
-
PDF_RENDITION_PREFIX
- See Also:
-
PDF_RENDITION_SUFFIX
- See Also:
-
PDF_RENDITION_MIME_TYPE
- See Also:
-
THUMBNAIL_RENDITION_PREFIX
- See Also:
-
THUMBNAIL_RENDITION_SUFFIX
- See Also:
-
THUMBNAIL_RENDITION_MIME_TYPE
- See Also:
-
-
Constructor Details
-
BaseContentConverter
public BaseContentConverter()
-
-
Method Details
-
generatePDF
- Specified by:
generatePDFin interfaceRenditionConverter- Throws:
Exception
-
generateThumbnail
- Specified by:
generateThumbnailin interfaceRenditionConverter- Throws:
Exception
-
handlesContentType
- Specified by:
handlesContentTypein interfaceRenditionConverter
-
getPdfRenditionMimeType
- Specified by:
getPdfRenditionMimeTypein interfaceRenditionConverter
-
getThumbnailRenditionMimeType
- Specified by:
getThumbnailRenditionMimeTypein interfaceRenditionConverter
-
isPDFRenditionSupported
public abstract boolean isPDFRenditionSupported()- Specified by:
isPDFRenditionSupportedin interfaceRenditionConverter
-
isThumbnailRenditionSupported
public abstract boolean isThumbnailRenditionSupported()- Specified by:
isThumbnailRenditionSupportedin interfaceRenditionConverter
-
addSupportedContentType
- Specified by:
addSupportedContentTypein interfaceRenditionConverter
-
setSupportedContentTypes
- 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
-
getSupportedContentTypes
-