Return to www.inductionframework.org

com.acciente.induction.view
Interface ImageStream


public interface ImageStream

This view interface should be implemented to send an image to the browser. This interface provided maximum control over how the image data is handed over to Induction.


Method Summary
 java.lang.String getMimeType()
          This method should return the mime type of the text content
 void writeImage(java.io.OutputStream oOutputStream)
          This method when called by Induction, should write the image contents to the output stream passed to the method
 

Method Detail

writeImage

void writeImage(java.io.OutputStream oOutputStream)
This method when called by Induction, should write the image contents to the output stream passed to the method

Parameters:
oOutputStream - the output stream to which the image data should be written out to

getMimeType

java.lang.String getMimeType()
This method should return the mime type of the text content

Returns:
a string representation of a mime type, e.g. text/html

Return to www.inductionframework.org

Copyright (c) 2008 Acciente, LLC. All rights reserved.