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.

Author:
Adinath Raveendra Raj

Method Summary
 java.lang.String getMimeType()
          This method should return the mime type of the text content
 void writeImage(javax.servlet.http.HttpServletResponse oResponse)
          This method when called by Induction, should write the image contents to the servlet response passed to the method
 

Method Detail

writeImage

void writeImage(javax.servlet.http.HttpServletResponse oResponse)
This method when called by Induction, should write the image contents to the servlet response passed to the method

Parameters:
oResponse - the servlet response to which the image data should be sent

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 © 2008-2011 Acciente, LLC. All Rights Reserved.