link.java

来自「中国移动定位引擎的客户端」· Java 代码 · 共 61 行

JAVA
61
字号
package ffcs.lbp.le.message;

import java.nio.ByteBuffer;

/**
* <p>Title: Smgp协议解析</p>
* <p>Description: 链路检测包</p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: 福富软件</p>
* @author chenxin
* @version 1.0 $Date 2007-07-05
*/
public class Link extends LeMessage {
    /**
     * Constructs a new ActiveTest.
     */
    public Link() {
        super(Link);
    }

    /**
     * Convert this packet to a String. Not to be interpreted programmatically,
     * it's just dead handy for debugging!
     */
    public String toString() {
        
        StringBuffer sb=new StringBuffer("Link:");
	    sb.append(super.toString());
	    return sb.toString();
    }
    
    public int getBodyLength() {
        return 0;
    }
	
	
	/**
     * 读取协议包的包体
     * @param buf ByteBuffer
     * @throws MessageParseException
     * @return boolean
     */
    protected boolean readBody(ByteBuffer buf) throws
            LeProtocolException{
    	    	
    	return true;
    }


    /**
     * 读取协议包的包体
     * @param buf ByteBuffer
     * @return boolean
     */
    protected  boolean writeBody(ByteBuffer buf){
    	
    	return true;
    }
    
    
}

⌨️ 快捷键说明

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