logo

ServletOutputStream Class


Show

ServletOutputStream class offers a circulate to write down binary information into the response. It is a summary class.

The getOutputStream() technique of ServletResponse interfaces give back the example of ServletOutputStream class. It can be get as:

ServletOutputStream out=response.getOutputStream(); 

Ways of ServletOutputStream Class

The ServletOutputStream Class provides print() and printIn() ways that are overburdened

  1. void print(boolean b){}
  2. void print(char c){}
  3. void print(int i){}
  4. void print(long l){}
  5. void print(float f){}
  6. void print(double d){}
  7. void print(String s){}
  8. void println{}
  9. void println(boolean b){}
  10. void println(char c){}
  11. void println(int i){}
  12. void println(long l){}
  13. void println(float f){}
  14. void println(double d){}
  15. void println(String s){}

ServletOutputStream Class Example

Example of ServletOutputStream class to write image