Reads a byte from the current zip entry. @return the byte or -1 on EOF. @exception IOException if a i/o error occured. @exception ZipException if the deflated stream is corrupted.
()
| 281 | * @exception ZipException if the deflated stream is corrupted. |
| 282 | */ |
| 283 | public int read() throws IOException |
| 284 | { |
| 285 | byte[] b = new byte[1]; |
| 286 | if (read(b, 0, 1) <= 0) |
| 287 | return -1; |
| 288 | return b[0] & 0xff; |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Reads a block of bytes from the current zip entry. |
no test coverage detected