code: public synchronized static void read(int fd, Collection<ByteBuffer> collection) throws IOException{
          collection.add(ByteBuffer.wrap(read(fd)));
      }
docs: <p>Reads all available bytes from the serial port/device into a provided collection of ByteBuffer objects.</p>
  
  @param fd
  The file descriptor of the serial port/device.
  @param collection
  The collection of CharSequence objects to append to.