Class BlobImageProvider
- java.lang.Object
-
- fr.opensagres.xdocreport.document.images.AbstractImageProvider
-
- fr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider
-
- org.nuxeo.template.processors.xdocreport.BlobImageProvider
-
- All Implemented Interfaces:
fr.opensagres.xdocreport.document.images.IImageProvider
public class BlobImageProvider extends fr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider
XDocReport wrapper for a Picture stored in a Nuxeo Blob- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected Blob
blob
protected fr.opensagres.xdocreport.core.document.ImageFormat
imageFormat
-
Constructor Summary
Constructors Constructor Description BlobImageProvider(Blob blob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.opensagres.xdocreport.core.document.ImageFormat
getImageFormat()
protected InputStream
getInputStream()
-
Methods inherited from class fr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider
doIsValid, loadImageInfo, write
-
-
-
-
Field Detail
-
imageFormat
protected final fr.opensagres.xdocreport.core.document.ImageFormat imageFormat
-
-
Constructor Detail
-
BlobImageProvider
public BlobImageProvider(Blob blob)
-
-
Method Detail
-
getInputStream
protected InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in classfr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider
- Throws:
IOException
-
getImageFormat
public fr.opensagres.xdocreport.core.document.ImageFormat getImageFormat()
-
-