Exemple #1
0
  private void _decode(AsnInputStream ais, int length)
      throws MAPParsingComponentException, IOException, AsnException {
    this.data = ais.readIA5StringData(length);

    if (data == null)
      throw new MAPParsingComponentException(
          "Error while decoding " + _PrimitiveName + ": bad String length: must be 4, found=0",
          MAPParsingComponentExceptionReason.MistypedParameter);
    if (data.length() != 4)
      throw new MAPParsingComponentException(
          "Error while decoding "
              + _PrimitiveName
              + ": bad String length: must be 4, found="
              + data.length(),
          MAPParsingComponentExceptionReason.MistypedParameter);
  }