File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JspWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JspWriter" Watch "JspWriter" New topic
Author

JspWriter

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
JspWriter extends java.io.Writer, and JspWriter is a special kind of PrintWriter. Is JspWriter an instance of the PrintWriter?
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
This from the API
This abstract class emulates some of the functionality found in the java.io.BufferedWriter and java.io.PrintWriter classes, however it differs in that it throws java.io.IOException from the print methods while PrintWriter does not.

------------------
I Hope This Helps
Carl Trusiak, SCJP2


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have read these sentences from the JSP2.3 specification. Is "emulates functionality" of the BufferedWriter and PrintWriter equivalent to saying that JspWriter is an instance of the PrintWriter and BufferedWriter?
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3201
    
    2
No. As is evident from the inheritance tree shown at the top of javadoc for this class:

And if you further look for the inheritance tree for PrintWriter, you'll know that PrintWriter and JspWriter are actually siblings.


------------------
SCJP2, SCWCD Resources, Free Question A Day, Mock Exam Results and More!
www.jdiscuss.com
Get Certified, Guaranteed!
JQPlus - For SCJP2
JWebPlus - For SCWCD
JDevPlus - For SCJD


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Thanks a log, Paul.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JspWriter
 
Similar Threads
implicit objects question
JspWriter vs PrintWriter
Outputting help
Diff. PrintWriter versus JSPWriter
JspWriter Vs PrintWriter