This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes PrintStream/PrintWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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
 
Similar Threads
differents between PrintWriter and PrintStream
I/O question
About PrintWriter with println and write
what is the difference between printStream and PrintWriter?
Is there any newsletter for scjp?