File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
PrintWriter vs OutputStream
Joined: Jun 09, 2005
Aug 14, 2005 08:22:00
can anybody help me
what is the difference between
which should we use . which is better?
Joined: Aug 04, 2004
Aug 14, 2005 08:47:00
is only for character data and
for everything (binary data, character data).
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Joined: Aug 02, 2005
Aug 15, 2005 07:15:00
In addition, you cannot use both
. If you obtained one of them and try to get the other you will get a
. See also the following thread:
I agree. Here's the link:
subject: PrintWriter vs OutputStream
problem with PrintWriter
Difference between PrintWriter and Output Stream.
PrintStream & PrintWriter
why should we set response.setContentType before using PrintWriter or OutputStream?
what is the difference between printStream and PrintWriter?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013