@Override synchronized public void notifyOnParityError(boolean x) { checkState(); m_NotifyOnParityError = x; }
@Override synchronized public int getReceiveTimeout() { checkState(); return m_ReceiveTimeoutValue; }
@Override synchronized public int getFlowControlMode() { checkState(); return m_FlowControlMode; }
@Override synchronized public int getParity() { checkState(); return m_Parity; }
@Override synchronized public void notifyOnFramingError(boolean x) { checkState(); m_NotifyOnFramingError = x; }
@Override synchronized public void notifyOnParityError(boolean x) { checkState(); m_NotifyOnParityError = x; }
@Override synchronized public int getParity() { checkState(); return m_Parity; }
@Override synchronized public int getFlowControlMode() { checkState(); return m_FlowControlMode; }
@Override synchronized public void notifyOnOverrunError(boolean x) { checkState(); m_NotifyOnOverrunError = x; }
@Override synchronized public void setInputBufferSize(int arg0) { checkState(); // Not supported }
@Override synchronized public boolean isRTS() { checkState(); return getControlLineState(TIOCM_RTS); }
@Override synchronized public void enableReceiveFraming(int arg0) throws UnsupportedCommOperationException { checkState(); throw new UnsupportedCommOperationException("receive framing not supported/implemented"); }
@Override synchronized public boolean isCTS() { checkState(); return getControlLineState(TIOCM_CTS); }
@Override synchronized public void notifyOnDataAvailable(boolean x) { checkState(); m_NotifyOnDataAvailable = x; nudgePipe(); }
@Override synchronized public void notifyOnOutputEmpty(boolean x) { checkState(); m_NotifyOnOutputEmpty = x; nudgePipe(); }
@Override synchronized public void enableReceiveFraming(int arg0) throws UnsupportedCommOperationException { checkState(); throw new UnsupportedCommOperationException("receive framing not supported/implemented"); }
@Override synchronized public void notifyOnOutputEmpty(boolean x) { checkState(); m_NotifyOnOutputEmpty = x; nudgePipe(); }
@Override synchronized public void setDTR(boolean x) { checkState(); setControlLineState(TIOCM_DTR, x); }
@Override synchronized public void notifyOnCTS(boolean x) { checkState(); if (x) updateControlLineState(TIOCM_CTS); m_NotifyOnCTS = x; nudgePipe(); }
synchronized private void setControlLineState(int line, boolean state) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); if (state) m_ioctl[0] |= line; else m_ioctl[0] &= ~line; if (ioctl(m_FD, TIOCMSET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMSET, m_ioctl) == -1"); }