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

📄 tapipeer.java

📁 tapi的java封装
💻 JAVA
字号:
/*
*	JTAPI library copyright 1998 by Web4Groups consortium (http://Web4Groups.at)
*/

import java.telephony.*;
import java.telephony.events.*;


public class TAPIPeer implements JtapiPeer {



	public String getName() {
		return "TAPIPeer";
	}


	public Provider getProvider(String name) {
		Class providerClass = null;
		Provider provider = null;

		try {
			providerClass = Class.forName(name);
			provider = (Provider)providerClass.newInstance();
		}

		catch (Exception e) {
			System.out.println("There is no class for provider: " + name);
			e.printStackTrace();
		}

		return provider;
	}


	public String[] getServices() {
		String str[] = new String[6];
		str[0] = "\nServices supported by this implementation:\n\n";
		str[1] = "- present any incoming calls to the application\n";
		str[2] = "- playing of wave files (can be a URL) over the telephone line\n";
		str[3] = "- recording of wave files over the telephone line\n";
		str[4] = "- detect DTMF and pulse tones if the hardware supports it\n";
		str[5] = "- send a file as fax (in various supported formats)\n";
		return str;
	}


}
      


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -