views:

237

answers:

2

Does anybody have a good analogy (or, failing that, a good resource) for describing the relationships between buffers, streams, readers, channels, selectors etc. in java.io and java.nio?

Thanks

+2  A: 

Check this for a decent summary

Java.nio vs Java.io

Further reading can be done here

JDK 1.4.2 New I/O APIs

A critical view at Java I/O

JSR 51: NEW I/O API's

JSR 203: More new I/O APIs (inactive)

Actual work on JSR 203 for JDK 7 (should alread be in JDK7 since M2)

jitter
Thanks, the train example at the end of the first reference is the type of thing I am looking for...
Lehane
A: 

This is the best one I've found so far: The Rox Java NIO Tutorial

Nighthawk