to.etc.domui.component.dynaima
Interface IStreamingImageSource


public interface IStreamingImageSource

UNSTABLE INTERFACE Represents an image source for an image that is present as an encoded byte stream, like present on a file system or present in a database BLOB.

Author:
Frits Jalvingh Created on Oct 2, 2008

Method Summary
 void close()
          This will be called when resources are to be released.
 java.io.InputStream getInputStream()
          This must return the stream to use for this resource.
 java.lang.String getMimeType()
          This MUST return the stream's mime type, which must be one of the supported formats (jpeg, gif, png)
 int getSize()
          Return the size in bytes of the stream.
 

Method Detail

getMimeType

java.lang.String getMimeType()
This MUST return the stream's mime type, which must be one of the supported formats (jpeg, gif, png)

Returns:

getSize

int getSize()
            throws java.lang.Exception
Return the size in bytes of the stream. If the size is unknown return -1.

Returns:
Throws:
java.lang.Exception

getInputStream

java.io.InputStream getInputStream()
                                   throws java.lang.Exception
This must return the stream to use for this resource.

Returns:
Throws:
java.lang.Exception

close

void close()
This will be called when resources are to be released.