public boolean getCTS() throws IllegalStateException, IOException{
        // validate state
        if (isClosed())
            throw new IllegalStateException("Serial connection is not open; cannot 'getCTS()'.");

        // get pin state
        return com.pi4j.jni.Serial.getCTS(fileDescriptor);
    }
public boolean getCTS ( ) throws IllegalStateException , IOException { if ( isClosed ( ) ) throw new IllegalStateException ( "Serial connection is not open; cannot 'getCTS()'." ) ; return com . pi4j . jni . Serial . getCTS ( fileDescriptor ) ; }
<p>
Get the CTS (clean-to-send) pin state.
</p>

@throws IllegalStateException thrown if the serial port is not already open.
@throws IOException thrown on any error.