|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.StreamImageReference
echopointng.image.URLImageReference
public class URLImageReference
URLImageReference provides an ImageReference
that gets its image data from an java.net.URL.
| Constructor Summary | |
|---|---|
URLImageReference(java.net.URL imageURL)
Creates an URLImageReference retrieved from the provided URL. |
|
URLImageReference(java.net.URL imageURL,
Extent width,
Extent height)
Creates an URLImageReference retrieved from the provided URL
with the specified width and height. |
|
URLImageReference(java.net.URL imageURL,
java.lang.String contentType)
Creates an URLImageReference retrieved from the provided URL
and the specified content type. |
|
URLImageReference(java.net.URL imageURL,
java.lang.String contentType,
Extent width,
Extent height)
Creates an URLImageReference retrieved from the provided URL
with the specified content type, width and height. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getRenderId()
Returns an identifier that is unique within the ApplicationInstance with which the implementor will be
used. |
Extent |
getWidth()
Returns the width of the image, or null if the size is unknown. |
void |
render(java.io.OutputStream out)
Renders the image data in its native format to the given output stream. |
void |
update()
Not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLImageReference(java.net.URL imageURL)
URLImageReference retrieved from the provided URL.
The content type of the image will be determined based on the extension of the URLs external form.
public URLImageReference(java.net.URL imageURL,
java.lang.String contentType)
URLImageReference retrieved from the provided URL
and the specified content type.
public URLImageReference(java.net.URL imageURL,
Extent width,
Extent height)
URLImageReference retrieved from the provided URL
with the specified width and height.
The content type of the image will be determined based on the extension of the URLs external form.
public URLImageReference(java.net.URL imageURL,
java.lang.String contentType,
Extent width,
Extent height)
URLImageReference retrieved from the provided URL
with the specified content type, width and height.
| Method Detail |
|---|
public java.lang.String getRenderId()
RenderIdSupportApplicationInstance with which the implementor will be
used.
RenderIdSupport.getRenderId()public java.lang.String getContentType()
StreamImageReference
getContentType in class StreamImageReferenceStreamImageReference.getContentType()public Extent getHeight()
ImageReference
getHeight in interface ImageReferencegetHeight in class StreamImageReferenceImageReference.getHeight()public Extent getWidth()
ImageReference
getWidth in interface ImageReferencegetWidth in class StreamImageReferenceImageReference.getWidth()public void update()
public void render(java.io.OutputStream out)
throws java.io.IOException
StreamImageReference
render in class StreamImageReferenceout - the output stream to write the image
java.io.IOExceptionStreamImageReference.render(java.io.OutputStream)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||