EchoPoint
2.1.0rc5

echopointng.image
Class URLImageReference

java.lang.Object
  extended by nextapp.echo2.app.StreamImageReference
      extended by echopointng.image.URLImageReference
All Implemented Interfaces:
Serializable, ImageReference, RenderIdSupport

public class URLImageReference
extends StreamImageReference

URLImageReference provides an ImageReference that gets its image data from an java.net.URL.

See Also:
Serialized Form

Constructor Summary
URLImageReference(URL imageURL)
          Creates an URLImageReference retrieved from the provided URL.
URLImageReference(URL imageURL, Extent width, Extent height)
          Creates an URLImageReference retrieved from the provided URL with the specified width and height.
URLImageReference(URL imageURL, String contentType)
          Creates an URLImageReference retrieved from the provided URL and the specified content type.
URLImageReference(URL imageURL, String contentType, Extent width, Extent height)
          Creates an URLImageReference retrieved from the provided URL with the specified content type, width and height.
 
Method Summary
 String getContentType()
           
 Extent getHeight()
           
 String getRenderId()
           
 Extent getWidth()
           
 void render(OutputStream out)
           
 void update()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLImageReference

public URLImageReference(URL imageURL)
Creates an URLImageReference retrieved from the provided URL.

The content type of the image will be determined based on the extension of the URLs external form.


URLImageReference

public URLImageReference(URL imageURL,
                         String contentType)
Creates an URLImageReference retrieved from the provided URL and the specified content type.


URLImageReference

public URLImageReference(URL imageURL,
                         Extent width,
                         Extent height)
Creates an 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.


URLImageReference

public URLImageReference(URL imageURL,
                         String contentType,
                         Extent width,
                         Extent height)
Creates an URLImageReference retrieved from the provided URL with the specified content type, width and height.

Method Detail

getRenderId

public String getRenderId()
See Also:
RenderIdSupport.getRenderId()

getContentType

public String getContentType()
Specified by:
getContentType in class StreamImageReference
See Also:
StreamImageReference.getContentType()

getHeight

public Extent getHeight()
Specified by:
getHeight in interface ImageReference
Overrides:
getHeight in class StreamImageReference
See Also:
ImageReference.getHeight()

getWidth

public Extent getWidth()
Specified by:
getWidth in interface ImageReference
Overrides:
getWidth in class StreamImageReference
See Also:
ImageReference.getWidth()

update

public void update()
Not supported.


render

public void render(OutputStream out)
            throws IOException
Specified by:
render in class StreamImageReference
Throws:
IOException
See Also:
StreamImageReference.render(java.io.OutputStream)

EchoPoint
2.1.0rc5