• Post Reply Bookmark Topic Watch Topic
  • New Topic

why ObjectInputStream is not a FilterInputStream?

 
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!