📄 gatewayxmlproperties.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -