Did i right understand, what Channel used for cases, when data, which we want to write - is not full received/prepared data?
But OutputStream used for case when we can write all data already now.
Another words:
nio - when we asynchronous getting data for writing
io - when we synchronous got data for writing
There is no such a type as
java.io.Stream
;If you, by any means, meant
java.util.Stream
andjava.nio.channels.Channels
, then they are two completely different types serving different purposes;Finally, if you are comparing
java.io
andjava.nio
, thenio
is about reading and writing, whereasnio
is about faster I/O, a.k.a buffered-reading and buffered-writing operations.