This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • 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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!