@Override
        public E readFrom(Input input) throws IOException
        {
            int tag = input.readEnum();
            return getByTag(tag);
        }
Reads the enum by its number.
protostuff-runtime/src/main/java/io/protostuff/runtime/EnumIO.java