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

📄 abstractdevicecore.java

📁 纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统
💻 JAVA
字号:
/*
 * $Id: AbstractDeviceCore.java,v 1.1 2003/11/25 11:52:25 epr Exp $
 */
package org.jnode.driver.net;

import org.apache.log4j.Logger;
import org.jnode.net.HardwareAddress;
import org.jnode.net.SocketBuffer;
import org.jnode.util.TimeoutException;

/**
 * This abstract class is not intended for any external purpose. It only serves
 * as a voluntary guide for driver implementation of network cards.
 * 
 * @author epr
 */
public abstract class AbstractDeviceCore {
	
	/** My logger */
	protected final Logger log = Logger.getLogger(getClass());

	/**
	 * Gets the hardware address of this device
	 */
	public abstract HardwareAddress getHwAddress();
	
	/**
	 * Initialize the device
	 */
	public abstract void initialize();
	
	/**
	 * Disable the device
	 */
	public abstract void disable();

	/**
	 * Release all resources
	 */
	public abstract void release();

	/**
	 * Transmit the given buffer
	 * @param buf
	 * @param timeout
	 * @throws InterruptedException
	 * @throws TimeoutException
	 */
	public abstract void transmit(SocketBuffer buf, long timeout)
	throws InterruptedException, TimeoutException;
}

⌨️ 快捷键说明

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