code: public static boolean isNextDigit(final Buffer buffer) throws IndexOutOfBoundsException, IOException {
          if (buffer.hasReadableBytes()) {
              final char next = (char) buffer.peekByte();
              return next >= 48 && next <= 57;
          }
  
          return false;
      }
docs: Check whether the next byte is a digit or not
  
  @param buffer
  @retur
  @throws IOException
  @throws IndexOutOfBoundsException