📄 tp_address_da_oa.java
字号:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: TP_Address_Da_Oa.java
package org.cross.sms.msg;
// Referenced classes of package org.cross.sms.msg:
// TP_Address, _CharacterUtil
public class TP_Address_Da_Oa extends TP_Address
{
public TP_Address_Da_Oa()
{
}
public int getTotalLength()
{
int len = m_len;
if(len % 2 > 0)
len++;
return len + 4;
}
public void setPhone(String phone)
{
init();
m_code = phone;
if(phone == null)
{
m_pdu = "";
return;
}
if(phone != null && phone.length() == 0)
{
m_pdu = "00";
return;
}
String pdu = "";
String str1 = phone;
String str2;
if(str1.charAt(0) == '+')
{
str1 = _CharacterUtil.toBCDFormat(str1.substring(1));
str2 = Integer.toHexString(phone.length() - 1);
str1 = "91" + str1;
m_type = "91";
} else
{
str1 = _CharacterUtil.toBCDFormat(str1);
str2 = Integer.toHexString(phone.length());
str1 = "81" + str1;
m_type = "81";
}
m_len = phone.length();
if(str2.length() != 2)
str2 = "0" + str2;
pdu = pdu + str2 + str1;
m_pdu = pdu;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -