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 final Blob
     
    protected final fr.opensagres.xdocreport.core.document.ImageFormat
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fr.opensagres.xdocreport.core.document.ImageFormat
     
    protected InputStream
     

    Methods inherited from class fr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider

    doIsValid, loadImageInfo, write

    Methods inherited from class fr.opensagres.xdocreport.document.images.AbstractImageProvider

    getBehaviour, getHeight, getImageInfo, getWidth, isResize, isUseImageSize, isValid, resetImageInfo, setBehaviour, setHeight, setResize, setSize, setUseImageSize, setWidth

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blob

      protected final Blob blob
    • imageFormat

      protected final fr.opensagres.xdocreport.core.document.ImageFormat imageFormat
  • Constructor Details

    • BlobImageProvider

      public BlobImageProvider(Blob blob)
  • Method Details

    • 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()