⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gatewayxmlproperties.java

📁 Logica lastest SMPP API
💻 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 + -