wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
Don't get me started about those stupid light bulbs.
 
subject: PrintStream/PrintWriter
 
Similar Threads
Is there any newsletter for scjp?
About PrintWriter with println and write
I/O question
differents between PrintWriter and PrintStream
what is the difference between printStream and PrintWriter?