code: public void decode(AsnInputStream ais) throws ParseException {
  
          try {
  
              BitSetStrictLength readV = ais.readBitString();
              if (readV.getStrictLength() >= 1 && readV.get(0)) {
                  // ok
              } else {
                  this.supportedVersion = false;
              }
          } catch (IOException e) {
              throw new ParseException(PAbortCauseType.BadlyFormattedTxPortion, null,
                      "IOException while decoding ProtocolVersion: " + e.getMessage(), e);
          } catch (AsnException e) {
              throw new ParseException(PAbortCauseType.BadlyFormattedTxPortion, null,
                      "AsnException while decoding ProtocolVersion: " + e.getMessage(), e);
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.asn.Encodable#decode(org.mobicents.protocols .asn.AsnInputStream)