EchoPoint
1.0

echopoint.image
Class URLImageReference

java.lang.Object
  extended bynextapp.echo.AbstractImageReference
      extended bynextapp.echo.StreamImageReference
          extended byechopoint.image.URLImageReference
All Implemented Interfaces:
nextapp.echo.ImageReference, java.io.Serializable

public class URLImageReference
extends nextapp.echo.StreamImageReference

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.AbstractImageReference
listenerList
 
Fields inherited from interface nextapp.echo.ImageReference
SIZE_UNKNOWN
 
Constructor Summary
URLImageReference(java.net.URL imageURL)
          Creates an URLImageReference retrieved from the provided URL.
URLImageReference(java.net.URL imageURL, int width, int 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, int width, int height)
          Creates an URLImageReference retrieved from the provided URL with the specified content type, width and height.
 
Method Summary
 void addImageUpdateListener(nextapp.echo.event.ImageUpdateListener l)
          Not supported.
 java.lang.String getContentType()
           
 int getHeight()
           
 int getWidth()
           
 void removeImageUpdateListener(nextapp.echo.event.ImageUpdateListener l)
          Not supported.
 void render(java.io.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(java.net.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(java.net.URL imageURL,
                         java.lang.String contentType)
Creates an URLImageReference retrieved from the provided URL and the specified content type.


URLImageReference

public URLImageReference(java.net.URL imageURL,
                         int width,
                         int 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(java.net.URL imageURL,
                         java.lang.String contentType,
                         int width,
                         int height)
Creates an URLImageReference retrieved from the provided URL with the specified content type, width and height.

Method Detail

addImageUpdateListener

public void addImageUpdateListener(nextapp.echo.event.ImageUpdateListener l)
Not supported.

See Also:
ImageReference.addImageUpdateListener(ImageUpdateListener)

getContentType

public java.lang.String getContentType()
See Also:
StreamImageReference.getContentType()

getHeight

public int getHeight()
See Also:
ImageReference.getHeight()

getWidth

public int getWidth()
See Also:
ImageReference.getWidth()

removeImageUpdateListener

public void removeImageUpdateListener(nextapp.echo.event.ImageUpdateListener l)
Not supported.

See Also:
ImageReference.removeImageUpdateListener(ImageUpdateListener)

update

public void update()
Not supported.

See Also:
ImageReference.update()

render

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

EchoPoint
1.0