< prev index next >

src/java.base/share/classes/sun/net/TelnetInputStream.java

Print this page

        

*** 123,141 **** } return c; } /** read into a byte array */ ! public int read(byte bytes[]) throws IOException { return read(bytes, 0, bytes.length); } /** * Read into a byte array at offset <i>off</i> for length <i>length</i> * bytes. */ ! public int read(byte bytes[], int off, int length) throws IOException { if (binaryMode) return super.read(bytes, off, length); int c; int offStart = off; --- 123,141 ---- } return c; } /** read into a byte array */ ! public int read(byte[] bytes) throws IOException { return read(bytes, 0, bytes.length); } /** * Read into a byte array at offset <i>off</i> for length <i>length</i> * bytes. */ ! public int read(byte[] bytes, int off, int length) throws IOException { if (binaryMode) return super.read(bytes, off, length); int c; int offStart = off;
< prev index next >