code: public static final void write(WritableByteChannel ch, byte[] bytes) throws IOException
      {
          write(ch, bytes, 0, bytes.length);
      }
docs: Writes bytes to channel
  @param ch
  @param bytes
  @throws IOException