作者:手机用户2502920725 | 来源:互联网 | 2023-06-19 19:59
本文整理了Java中org.mobicents.protocols.asn.AsnInputStream.readIA5StringData()方法的一些代码示例,展示了AsnInputStream.
本文整理了Java中org.mobicents.protocols.asn.AsnInputStream.readIA5StringData()
方法的一些代码示例,展示了AsnInputStream.readIA5StringData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AsnInputStream.readIA5StringData()
方法的具体详情如下:
包路径:org.mobicents.protocols.asn.AsnInputStream
类名称:AsnInputStream
方法名:readIA5StringData
暂无
代码示例
代码示例来源:origin: org.mobicents.protocols.ss7.map/map-impl
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);
}
代码示例来源:origin: org.restcomm.protocols.ss7.map/map-impl
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);
}