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