Expose methods to query the DTR and RTS lines

Since we're exposing CTS and DSR, also make it possible to read the corresponding input lines.
Floating point literals are treated as doubles in Java, unless suffixed with f.