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

📄 btconnection.java

📁 专业汽车级嵌入式操作系统OSEK的源代码
💻 JAVA
字号:
package lejos.nxt.comm;import java.io.*;import javax.microedition.io.*;/** *  * Represents a Bluetooth Stream Connection. *  * Currently only used to close a Bluetooth connection, * but will be used in a later release to implement input * and output streams. * */public class BTConnection implements StreamConnection {	int handle;	boolean open;		BTConnection(int handle)	{		this.handle = handle;		open = true;	}	public void close() throws IOException {		Bluetooth.btSetCmdMode(1);		open = false;	}	public DataInputStream openDataInputStream() throws IOException {		// TODO Auto-generated method stub		return null;	}	public DataOutputStream openDataOutputStream() throws IOException {		// TODO Auto-generated method stub		return null;	}	public InputStream openInputStream() throws IOException {		// TODO Auto-generated method stub		return null;	}	public OutputStream openOutputStream() throws IOException {		// TODO Auto-generated method stub		return null;	}}

⌨️ 快捷键说明

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