@Override
    public Integer fromBytes(byte[] bytes) {
        return ByteBuffer.wrap(bytes).getInt();
    }
The integer decoder translates bytes into integers.
tools/tools-api/src/main/java/org/apache/kafka/tools/api/IntegerDecoder.java