code: public int getEnumerated() throws IOException {
          if (buffer.read() != DerValue.tag_Enumerated) {
              throw new IOException("DER input, Enumerated tag error");
          }
          return buffer.getInteger(getLength(buffer));
      }
docs: Get an enumerated from the input stream.
  
  @return the integer held in this DER input stream.