aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes PrintStream/PrintWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "PrintStream/PrintWriter" Watch "PrintStream/PrintWriter" New topic
Author

PrintStream/PrintWriter

thomas
Ranch Hand

Joined: May 26, 2002
Posts: 79
What is the difference between PrintStream and PrintWriter classes?
Both have a number of print() methods which convert the argument to a string and print it based on the character encoding of the underlying platform.
It is my understanding that Stream classes in general do not convert their output to the encoding of the underlying platform, where as Writer classes do. But PrintStream appears to be an exception. If that is the case, what way does it differ from a PrintWriter ?
Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PrintStream/PrintWriter