Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why ObjectInputStream is not a FilterInputStream?  RSS feed

 
James Du
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'm wondering why ObjectInputStream is not the subclass of FilterInputStream like DataInputStream?
Since it provides the similar extended functionality to the InputStream and it also takes InputStream as a constructor parameter, I think it's a typical applicable case of "wrapper".
Did i miss something subtle?
Any reply would be greatly appreciated.
Regards,
James

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!