Class 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  
    • Field Detail

      • blob

        protected final Blob blob
      • 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 class fr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider
        Throws:
        IOException
      • getImageFormat

        public fr.opensagres.xdocreport.core.document.ImageFormat getImageFormat()