()
| 75 | } |
| 76 | |
| 77 | @Override |
| 78 | public int read() throws IOException { |
| 79 | byte[] buffer = new byte[1]; |
| 80 | int size = recv(sock, buffer, 0, 1); |
| 81 | if (size == 0) { |
| 82 | return -1; |
| 83 | } |
| 84 | return buffer[0]; |
| 85 | } |
| 86 | |
| 87 | @Override |
| 88 | public int read(byte[] buffer) throws IOException { |