Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JspWriter" Watch "JspWriter" New topic


JiaPei Jen
Ranch Hand

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

Joined: Jun 13, 2000
Posts: 3340
This from the API
This abstract class emulates some of the functionality found in the and classes, however it differs in that it throws 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: 3254
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!
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:
subject: JspWriter
Similar Threads
JspWriter vs PrintWriter
Diff. PrintWriter versus JSPWriter
implicit objects question
JspWriter Vs PrintWriter
Outputting help