By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

Implementing an XDR DataInputStream / DataOutputStream

P: n/a
Hi all,

I would like some advice regarding the following design issue:

I would like to be able to exchange data in XDR format. I was thinking of
writing a pair of I/O streams in the same fashion as DataInputStream and
DataOutputStream. I am ambivalent as to whether I should:

(a) subclass DataInputStream / DataOutputStream and override what is needed
(b) subclass FilterInputStream / FilterOutputStream and implement the
DataInput / DataOutput interfaces.

The option (b) is how DataInputStream / DataOutputStream are implemented. On
the other hand, option (a) would allow my streams to be used as a drop-in
replacement for code written with DataInputStream / DataOutputStream.

In theory, there is no difference between theory and practice.
In practice, there is. -- Yogi Berra.

Alexandros Karypidis
University of Thessaly
Computer & Communications Engineering dept.
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.