Why didn't Sun put common methods found in DatagramChannel and SocketChannelhigher up the hierachy?

?

-

I noticed that most of the abstract methods in DatagramChannel and
SocketChannel are the same. Why didn't Sun put those methods higher up
by creating a class that extends AbstractSelectableChannel?
 
S

Stefan Schulz

I noticed that most of the abstract methods in DatagramChannel and
SocketChannel are the same. Why didn't Sun put those methods higher up
by creating a class that extends AbstractSelectableChannel?

Ask whoever did the NIO design. It alternates between absolutely divine
concepts and absolutely abysmal ones. (Buffers, anyone?)
 
H

Harald

Stefan Schulz said:
On Sun, 24 Jul 2005 18:20:19 +0800, - wrote:
Ask whoever did the NIO design. It alternates between absolutely divine
concepts and absolutely abysmal ones. (Buffers, anyone?)

You mean Buffers instanceof Abysmal? I completely agree. To flip() or
not to flip() is always the question. What would be wrong with a
straight forward circular buffer design is a mystery to me.

Harald.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top