Why can't Java IO implement async reading?

Viewed 400

In Java IO, we use Stream and Reader while in NIO we use Channel, Selector.

They both do the same thing, but the structure is totally different.

So why they don't write a new Stream like "AsyncStream" or a Reader like "AsyncReader" to implement what NIO have implemented. If so, we only have one structure and it's beautiful.

So why Java IO cannot implement async reading? What are the difficulties to implement async reading using Java IO ?

Or what is the advantage of writing a new framework instead of using the existing one?

1 Answers
Related