Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1.     public int read(byte b[], int off, int length) throws IOException {
  2.     int n;
  3.  
  4.     // EOF already encountered
  5.     if (eof) {
  6.         return -1;
  7.     }
  8.  
  9.     // connection reset
  10.     if (impl.isConnectionReset()) {
  11.         throw new SocketException("Connection reset");
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement