Transfers specified amount of bytes from data input to this output stream.
This method is optimized to avoid unnecessary temporal buffer creation and byte array copy.
Parameters:
in - Data input to copy bytes from.
len - Data length to copy.
Throws:
IOException - If write failed, read from input failed or there is no enough data in data input.