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

📄 triareastoprsp.java

📁 中国移动定位引擎的客户端
💻 JAVA
字号:
/**
* <p>Title: LBP</p>
* <p>Description: 定位请求的应答包</p>
* <p>Company: 福富软件 </p>
* @author chenxin
* @version 1.0 $Date 2007-07-05
*/
package ffcs.lbp.le.message;

import java.nio.ByteBuffer;

public class TriAreaStopRsp extends LeMessage {
	private char Result;


	
	private int lenMessageBody=1 ;
	
	
	public TriAreaStopRsp() {
        super(StopCycLocRsp);
    }
	
	
	
	
	
	public int getBodyLength() {
        return lenMessageBody;
    }
	
	
	/**
     * 读取协议包的包体
     * @param buf ByteBuffer
     * @throws MessageParseException
     * @return boolean
     */
    protected boolean readBody(ByteBuffer buf) throws
            LeProtocolException{
    	
    	Result=buf.getChar();
        	
    	return true;
    }


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

    /**
     * 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("UserTrigRsp:");
	    sb.append(super.toString());
	    
	    sb.append("Result");
        sb.append("=");
        sb.append(Result);
        sb.append(" ");
        
        return sb.toString();
    }





	public char getResult() {
		return Result;
	}





	public void setResult(char result) {
		Result = result;
	}
	
	

}

⌨️ 快捷键说明

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