private int stringToFlow(String flowControl) {
		if (flowControl.equals("None")) {
		    return SerialPort.FLOWCONTROL_NONE;
		} else if (flowControl.equals("Xon/Xoff Out")) {
		    return SerialPort.FLOWCONTROL_XONXOFF_OUT;
		} else if (flowControl.equals("Xon/Xoff In")) {
		    return SerialPort.FLOWCONTROL_XONXOFF_IN;
		} else if (flowControl.equals("RTS/CTS In")) {
		    return SerialPort.FLOWCONTROL_RTSCTS_IN;
		} else if (flowControl.equals("RTS/CTS Out")) {
		    return SerialPort.FLOWCONTROL_RTSCTS_OUT;
		}
		return SerialPort.FLOWCONTROL_NONE;
    }