/** * Peeks one single unsigned byte from the buffer. * @return the unsigned byte as int * @throws IOException if an error occurs during reading */ public int peekUnsignedByte(int offset) throws IOException { int b = peek(offset); if (b < 0) { throw new EOFException(); } return b; }
/** * Peeks one single unsigned byte from the buffer. * @return the unsigned byte as int * @throws IOException if an error occurs during reading */ public int peekUnsignedByte(int offset) throws IOException { int b = peek(offset); if (b < 0) { throw new EOFException(); } return b; }
/** * Peeks one single unsigned byte from the buffer. * @return the unsigned byte as int * @throws IOException if an error occurs during reading */ public int peekUnsignedByte(int offset) throws IOException { int b = peek(offset); if (b < 0) { throw new EOFException(); } return b; }