to.etc.domui.util.images
Interface IStreamingImageInfo


public interface IStreamingImageInfo

This gets returned by the streaming image factory classes.

Author:
Frits Jalvingh Created on Oct 2, 2008

Method Summary
 ImageInfo getImageData()
          This returns the image's data if that data is available.
 java.io.InputStream getInputStream()
          Returns the datastream containing this image.
 long getLastModifiedDate(java.lang.String key)
          If this retriever accesses resources that can change after use this must return some usable indication of the version, usually a "last date changed" timestamp.
 java.lang.String getMimeType()
           
 

Method Detail

getLastModifiedDate

long getLastModifiedDate(java.lang.String key)
                         throws java.lang.Exception
If this retriever accesses resources that can change after use this must return some usable indication of the version, usually a "last date changed" timestamp. This value should remain unchanged over invocations if the object accessed has not changed. It should return -1 if the source object has been deleted; it should return 0 if the timestamp does not matter.

Returns:
Throws:
java.lang.Exception

getMimeType

java.lang.String getMimeType()
                             throws java.lang.Exception
Throws:
java.lang.Exception

getImageData

ImageInfo getImageData()
                       throws java.lang.Exception
This returns the image's data if that data is available. If not this returns null.

Returns:
Throws:
java.lang.Exception

getInputStream

java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Returns the datastream containing this image. This may be called only ONCE for an image and must be closed after use.

Returns:
Throws:
java.lang.Exception