throw new IndexOutOfBoundsException("buffer.length " + buffer.length + " offset " + offset + " length " + length); if (m_FD < 0) throwStreamClosedException(); throwStreamClosedException(); int re = im_ReadPollFD[0].revents; if ((re & POLLNVAL) != 0) throwStreamClosedException(); dataAvailable = (re & POLLIN) != 0; if (m_FD < 0) // the port closed while we were throwStreamClosedException(); if (n < 0) throw new IOException(String.format("select() < 0 , errno()=%d",errno()));
throw new IndexOutOfBoundsException("buffer.length " + buffer.length + " offset " + offset + " length " + length); if (m_FD < 0) throwStreamClosedException(); throwStreamClosedException(); int re = im_ReadPollFD[0].revents; if ((re & POLLNVAL) != 0) throwStreamClosedException(); dataAvailable = (re & POLLIN) != 0; if (m_FD < 0) // the port closed while we were throwStreamClosedException(); if (n < 0) throw new IOException(String.format("select() < 0 , errno()=%d",errno()));
@Override final public int read() throws IOException { checkState(); byte[] buf = { 0 }; int n = read(buf, 0, 1); return n > 0 ? buf[0] & 0xFF : -1; }
@Override final public int read() throws IOException { byte[] buf = { 0 }; int n = read(buf, 0, 1); return n > 0 ? buf[0] & 0xFF : -1; }
@Override final public int read() throws IOException { byte[] buf = { 0 }; int n = read(buf, 0, 1); return n > 0 ? buf[0] & 0xFF : -1; }