SocketInputStream sis = new SocketInputStream(s); sis.close(); if (ioe != null) { throw ioe; sis.close();
SocketInputStream sis = new SocketInputStream(s); completionStatus = readInt(sis); } catch (IOException x) { sis.close(); if (ioe != null) { throw ioe; sis.close();
@Override public synchronized int read() throws IOException { byte b[] = new byte[1]; int n = this.read(b, 0, 1); if (n == 1) { return b[0] & 0xff; } else { return -1; } }
@Override public synchronized int read() throws IOException { byte[] b = new byte[1]; int n = read(b, 0, 1); if (n == 1) { return b[0] & 0xff; } else { return -1; } }