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 ; }
Check whether the next byte is a digit or not