Package com.flowable.rendition
Class BaseContentConverter
java.lang.Object
com.flowable.rendition.BaseContentConverter
- All Implemented Interfaces:
RenditionConverter
- Author:
- Yvo Swillens
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addSupportedContentType
(String contentType) protected abstract void
createPDFRendition
(InputStream is, OutputStream renditionOutputStream) protected abstract void
createThumbnailRendition
(InputStream is, OutputStream renditionOutputStream) boolean
handlesContentType
(String contentType) abstract boolean
abstract boolean
abstract void
setSupportedContentTypes
(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:
generatePDF
in interfaceRenditionConverter
- Throws:
Exception
-
generateThumbnail
- Specified by:
generateThumbnail
in interfaceRenditionConverter
- Throws:
Exception
-
handlesContentType
- Specified by:
handlesContentType
in interfaceRenditionConverter
-
getPdfRenditionMimeType
- Specified by:
getPdfRenditionMimeType
in interfaceRenditionConverter
-
getThumbnailRenditionMimeType
- Specified by:
getThumbnailRenditionMimeType
in interfaceRenditionConverter
-
isPDFRenditionSupported
public abstract boolean isPDFRenditionSupported()- Specified by:
isPDFRenditionSupported
in interfaceRenditionConverter
-
isThumbnailRenditionSupported
public abstract boolean isThumbnailRenditionSupported()- Specified by:
isThumbnailRenditionSupported
in interfaceRenditionConverter
-
addSupportedContentType
- Specified by:
addSupportedContentType
in interfaceRenditionConverter
-
setSupportedContentTypes
- Specified by:
setSupportedContentTypes
in 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
-