gatewayxmlproperties.java
来自「Logica lastest SMPP API」· Java 代码 · 共 47 行
JAVA
47 行
/*
* Created on Aug 24, 2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package com.smpp.server;
import java.io.File;
import java.io.IOException;
import org.apache.xmlbeans.XmlException;
import noNamespace.SMPPServerDocument;
import noNamespace.SMPPServerType;
import noNamespace.SMSCType;
public class GatewayXMLProperties {
public static void main(String [] args)
{
SMPPServerDocument doc = null;
try {
File file = new File("SMPPServer.xml");
try {
doc = SMPPServerDocument.Factory.parse(file);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (XmlException e) {
e.printStackTrace();
}
SMPPServerType serverType = doc.getSMPPServer();
SMSCType [] array = serverType.getSMSCArray();
int size = array.length;
for(int i = 0; i < size ; i ++)
{
System.out.println(array[i].getSystemId());
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?