public abstract class StreamImageReference extends java.lang.Object implements ImageReference
ImageReferences whose content is delivered by an OutputStream.
Some internal ImageReference types are based on this class, and it may also be used for
images streamed by an application.| Constructor and Description |
|---|
StreamImageReference()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getContentType()
Returns the valid RFC 1521 image content type (e.g., image/png,
image/jpeg, image/gif, etc) of the image.
|
Extent |
getHeight()
Returns the height of the image, or null if the size is unknown.
|
Extent |
getWidth()
Returns the width of the image, or null if the size is unknown.
|
abstract void |
render(java.io.OutputStream out)
Renders the image data in its native format to the given output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRenderIdpublic abstract java.lang.String getContentType()
public Extent getHeight()
ImageReferencegetHeight in interface ImageReferenceImageReference.getHeight()public Extent getWidth()
ImageReferencegetWidth in interface ImageReferenceImageReference.getWidth()public abstract void render(java.io.OutputStream out)
throws java.io.IOException
out - the output stream to write the imagejava.io.IOException