Prefer using isDigits(ChannelBuffer)
or DigitsPattern.matcher(input).matches()
Returns true if every readable byte in the ChannelBuffer is a digit, false otherwise.
Returns true if every readable byte in the ChannelBuffer is a digit, false otherwise.
See caliper test in finagle-benchmark, about 15x faster and does 0 allocations versus using ChannelBufferUtils.matches(DIGITS)