• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About JspWriter

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
What is the differences between method print and write in class JspWriter?
thanks
daniel
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out the API for JspWriter
example:

public abstract void print(java.lang.String s) throws java.io.IOException
Print a string. If the argument is null then the string "null" is printed. Otherwise, the string's characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the Writer.write(int) method.

so... it behaves just like the .write() function but it has a couple *extra* behaviors that are quite helpful for JSPs -- especially that character encoding thing.
[ March 21, 2003: Message edited by: Jessica Sant ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic