public int getMNC() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 3) throw new MAPException("Data length must be at least 3"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding TbcdString: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding TbcdString: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMnc; if (res.length() == 5) { sMnc = res.substring(3); } else { sMnc = res.substring(4) + res.substring(3, 4); } return Integer.parseInt(sMnc); }
public int getMnc() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 5 || data.length > 7) throw new MAPException("Data length must be between 5-7"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding GlobalCellId: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding GlobalCellId: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMnc; if (res.length() == 5) { sMnc = res.substring(3); } else { sMnc = res.substring(4) + res.substring(3, 4); } return Integer.parseInt(sMnc); }
public int getMNC() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length != 5) throw new MAPException("Data length must be equal 7"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding TbcdString: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding TbcdString: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMnc; if (res.length() == 5) { sMnc = res.substring(3); } else { sMnc = res.substring(4) + res.substring(3, 4); } return Integer.parseInt(sMnc); }
public int getMNC() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length != 7) throw new MAPException("Data length must be equal 7"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding CellGlobalIdOrServiceAreaIdFixedLength: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding CellGlobalIdOrServiceAreaIdFixedLength: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMnc; if (res.length() == 5) { sMnc = res.substring(3); } else { sMnc = res.substring(4) + res.substring(3, 4); } return Integer.parseInt(sMnc); }
public int getMcc() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 5 || data.length > 7) throw new MAPException("Data length must be between 5-7"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding GlobalCellId: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding GlobalCellId: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMcc = res.substring(0, 3); return Integer.parseInt(sMcc); }
public int getMCC() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length != 7) throw new MAPException("Data length must be equal 7"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding CellGlobalIdOrServiceAreaIdFixedLength: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding CellGlobalIdOrServiceAreaIdFixedLength: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMcc = res.substring(0, 3); return Integer.parseInt(sMcc); }
public int getMCC() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 2) throw new MAPException("Data length must be at least 2"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 2); } catch (IOException e) { throw new MAPException("IOException when decoding TbcdString: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding TbcdString: " + e.getMessage(), e); } if (res.length() < 3 || res.length() > 4) throw new MAPException("Decoded TbcdString must be equal 3 or 4"); String sMcc = res.substring(0, 3); return Integer.parseInt(sMcc); }
public int getMCC() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length != 5) throw new MAPException("Data length must be equal 7"); AsnInputStream ansIS = new AsnInputStream(data); String res = null; try { res = TbcdString.decodeString(ansIS, 3); } catch (IOException e) { throw new MAPException("IOException when decoding TbcdString: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when decoding TbcdString: " + e.getMessage(), e); } if (res.length() < 5 || res.length() > 6) throw new MAPException("Decoded TbcdString must be equal 5 or 6"); String sMcc = res.substring(0, 3); return Integer.parseInt(sMcc); }
throw new MAPException("IOException when creating AddressField: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { throw new MAPException("MAPParsingComponentException when creating AddressField: " + e.getMessage(), e);
} catch (MAPParsingComponentException e) { e.printStackTrace(); loger.error("MAPException when parsing MAP-OPEN Pdu: " + e.getMessage()); try { this.fireTCAbortProvider(tcBeginIndication.getDialog(), MAPProviderAbortReason.invalidPDU, null, false);
} catch (MAPParsingComponentException e) { e.printStackTrace(); loger.error("MAPException when parsing MAP-ACCEPT Pdu: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { e.printStackTrace(); loger.error("MAPException when parsing MAP-ACCEPT Pdu: " + e.getMessage(), e);
} catch (MAPParsingComponentException e) { e.printStackTrace(); loger.error("MAPException when parsing MAP-ACCEPT/MAP-CLOSE Pdu: " + e.getMessage(), e); } catch (MAPParsingComponentException e) { e.printStackTrace(); loger.error("MAPException when parsing MAP-ACCEPT/MAP-CLOSE Pdu: " + e.getMessage(), e);
loger.error( "When parsing TCUserAbortIndication indication: MAPParsingComponentException" + e.getMessage(), e); parsePduResult = ParsePduResult.BadUserInfo;