File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
I/O question
About PrintWriter with println and write
Is there any newsletter for scjp?
what is the difference between printStream and PrintWriter?
differents between PrintWriter and PrintStream