@Override
    public byte peekByte() throws IndexOutOfBoundsException, IOException {
        final int read = internalReadBytes(1);
        if (read == -1) {
            // not sure this is really the right thing to do
            throw new IndexOutOfBoundsException();
        }
        return getByte(this.readerIndex);
    }
@ Override public byte peekByte ( ) throws IndexOutOfBoundsException , IOException { final int read = internalReadBytes ( 1 ) ; if ( read == - 1 ) { throw new IndexOutOfBoundsException ( ) ; } return getByte ( this . readerIndex ) ; }
{@inheritDoc}