fr.opensagres.xdocreport.document.images
Class AbstractInputStreamImageProvider

java.lang.Object
  extended by fr.opensagres.xdocreport.document.images.AbstractImageProvider
      extended by fr.opensagres.xdocreport.document.images.AbstractInputStreamImageProvider
All Implemented Interfaces:
IImageProvider
Direct Known Subclasses:
ClassPathImageProvider, FileImageProvider

public abstract class AbstractInputStreamImageProvider
extends AbstractImageProvider


Constructor Summary
AbstractInputStreamImageProvider(boolean keepTemplateImageSize)
           
 
Method Summary
protected  boolean doIsValid()
           
protected abstract  InputStream getInputStream()
           
protected  SimpleImageInfo loadImageInfo()
          Load image info.
 void write(OutputStream outputStream)
          Write the binary data of the image in the given output stream.
 
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
 
Methods inherited from interface fr.opensagres.xdocreport.document.images.IImageProvider
getImageFormat
 

Constructor Detail

AbstractInputStreamImageProvider

public AbstractInputStreamImageProvider(boolean keepTemplateImageSize)
Method Detail

write

public void write(OutputStream outputStream)
           throws IOException
Description copied from interface: IImageProvider
Write the binary data of the image in the given output stream.

Throws:
IOException

getInputStream

protected abstract InputStream getInputStream()
                                       throws IOException
Throws:
IOException

doIsValid

protected boolean doIsValid()
Specified by:
doIsValid in class AbstractImageProvider

loadImageInfo

protected SimpleImageInfo loadImageInfo()
                                 throws IOException
Description copied from class: AbstractImageProvider
Load image info.

Specified by:
loadImageInfo in class AbstractImageProvider
Returns:
Throws:
IOException


Copyright © 2013. All rights reserved.