This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes FilterInputStream vs. FilterOutputStream construction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "FilterInputStream vs. FilterOutputStream construction" Watch "FilterInputStream vs. FilterOutputStream construction" New topic

FilterInputStream vs. FilterOutputStream construction

R Arun
Ranch Hand

Joined: Apr 20, 2002
Posts: 33
The constructor for FilterInputStream is protected. Understandable because this class is not meant to be instantiated by outsiders, and serves primarily as a base class.
Why is the constructor for FilterOutputStream public? Can somebody rationalize this?
It is sorta covered in the JavaRanch Style Guide.
subject: FilterInputStream vs. FilterOutputStream construction
It's not a secret anymore!