I am newly to NIO and I find an article saying 'the block-based transmission is commonly more effective than stream-based transmission'. It means read(ByteBuffer) is block-based transmission and read(byte[]) is stream-based transmission.
I want to know what's the internal difference between the two methods.
ps:I also hear block-based transmission is transferring byte arrays and stream-based transmission is transferring byte one by one. I think it's wrong, because java.io.FileInputStream.read(byte[]) transfers byte array as well.