code: public synchronized static CharBuffer read(int fd, Charset charset) throws IOException{
          return charset.decode(ByteBuffer.wrap(read(fd)));
      }
docs: <p>Reads all available bytes from the port/serial device.</p>
  
  @param fd
  The file descriptor of the serial port/device.
  @param charset
  The character set to use for encoding/decoding bytes to/from text characters
  
  @return Returns a character set with the data read from the serial port.