code: public synchronized static void write(int fd, char ... data) throws IOException {
  
          // write the buffer contents to the serial port via JNI native method
          write(fd, StandardCharsets.US_ASCII, CharBuffer.wrap(data));
      }
docs: <p>Sends an array of ASCII characters to the serial port/device identified by the given file descriptor.</p>
  
  @param fd
  The file descriptor of the serial port/device.
  @param data
  One or more ASCII characters (or an array) of data to be transmitted. (variable-length-argument)