net.sf.jooreports.templates.image
Class AbstractInputStreamImageSource

java.lang.Object
  extended by net.sf.jooreports.templates.image.AbstractInputStreamImageSource
All Implemented Interfaces:
ImageSource
Direct Known Subclasses:
ClasspathImageSource, FileImageSource

public abstract class AbstractInputStreamImageSource
extends java.lang.Object
implements ImageSource


Constructor Summary
AbstractInputStreamImageSource()
           
 
Method Summary
 int getHeight()
           
protected abstract  java.io.InputStream getInputStream()
           
 int getWidth()
           
 void write(java.io.OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInputStreamImageSource

public AbstractInputStreamImageSource()
Method Detail

getInputStream

protected abstract java.io.InputStream getInputStream()
                                               throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.io.OutputStream outputStream)
           throws java.io.IOException
Specified by:
write in interface ImageSource
Throws:
java.io.IOException

getWidth

public int getWidth()
Specified by:
getWidth in interface ImageSource

getHeight

public int getHeight()
Specified by:
getHeight in interface ImageSource