()
| 74 | } |
| 75 | |
| 76 | public int read() |
| 77 | throws IOException |
| 78 | { |
| 79 | if (this.in == null) |
| 80 | throw new IOException("Input stream is not open"); |
| 81 | int result; |
| 82 | if (this.residualLength == 0) { |
| 83 | result = -1; |
| 84 | } else { |
| 85 | this.in.seek(this.dataOffset); |
| 86 | result = this.in.readByte() & 0xFF; |
| 87 | this.dataOffset += 1L; |
| 88 | this.residualLength -= 1; |
| 89 | } |
| 90 | |
| 91 | return result; |
| 92 | } |
| 93 | |
| 94 | public int read(byte[] buffer) |
| 95 | throws IOException |