private void failWithIllegalStateException() { throw new PureJavaIllegalStateException("File descriptor is " + m_FD + " < 0, maybe closed by previous error condition"); }
private void failWithIllegalStateException() { throw new PureJavaIllegalStateException("File descriptor is " + m_FD + " < 0, maybe closed by previous error condition"); }
private void failWithIllegalStateException() { throw new PureJavaIllegalStateException("File descriptor is " + m_FD + " < 0, maybe closed by previous error condition"); }
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"); }
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"); }
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"); }
private void checkReturnCode(int code) { if (code != 0) { String msg = String.format("JTermios call returned %d at %s", code, lineno(1)); log = log && log(1, "%s\n", msg); try { close(); } catch (Exception e) { StackTraceElement st = e.getStackTrace()[0]; String msg2 = String.format("close threw %s at class %s line% d", e.getClass().getName(), st.getClassName(), st.getLineNumber()); log = log && log(1, "%s\n", msg2); } throw new PureJavaIllegalStateException(msg); } }
private void checkReturnCode(int code) { if (code != 0) { String msg = String.format("JTermios call returned %d at %s", code, lineno(1)); log = log && log(1, "%s\n", msg); try { close(); } catch (Exception e) { StackTraceElement st = e.getStackTrace()[0]; String msg2 = String.format("close threw %s at class %s line% d", e.getClass().getName(), st.getClassName(), st.getLineNumber()); log = log && log(1, "%s\n", msg2); } throw new PureJavaIllegalStateException(msg); } }
private void checkReturnCode(int code) { if (code != 0) { String msg = String.format("JTermios call returned %d at %s", code, lineno(1)); log = log && log(1, "%s\n", msg); try { close(); } catch (Exception e) { StackTraceElement st = e.getStackTrace()[0]; String msg2 = String.format("close threw %s at class %s line% d", e.getClass().getName(), st.getClassName(), st.getLineNumber()); log = log && log(1, "%s\n", msg2); } throw new PureJavaIllegalStateException(msg); } }
synchronized private void updateControlLineState(int line) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); m_ControlLineStates = (m_ioctl[0] & line) + (m_ControlLineStates & ~line); }
synchronized private boolean getControlLineState(int line) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); return (m_ioctl[0] & line) != 0; }
synchronized private void updateControlLineState(int line) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); m_ControlLineStates = (m_ioctl[0] & line) + (m_ControlLineStates & ~line); }
synchronized private boolean getControlLineState(int line) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); return (m_ioctl[0] & line) != 0; }
synchronized private void updateControlLineState(int line) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); m_ControlLineStates = (m_ioctl[0] & line) + (m_ControlLineStates & ~line); }
synchronized private boolean getControlLineState(int line) { checkState(); if (ioctl(m_FD, TIOCMGET, m_ioctl) == -1) throw new PureJavaIllegalStateException("ioctl(m_FD, TIOCMGET, m_ioctl) == -1"); return (m_ioctl[0] & line) != 0; }
throw e; } else { throw new PureJavaIllegalStateException(e);
throw e; } else { throw new PureJavaIllegalStateException(e);
throw e; } else { throw new PureJavaIllegalStateException(e);