abstractdevicecore.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 52 行
JAVA
52 行
/*
* $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 + =
减小字号Ctrl + -
显示快捷键?