当前位置: 首页>>代码示例>>Java>>正文


Java ByteUtils.toBase16方法代码示例

本文整理汇总了Java中com.rapplogic.xbee.util.ByteUtils.toBase16方法的典型用法代码示例。如果您正苦于以下问题:Java ByteUtils.toBase16方法的具体用法?Java ByteUtils.toBase16怎么用?Java ByteUtils.toBase16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.rapplogic.xbee.util.ByteUtils的用法示例。


在下文中一共展示了ByteUtils.toBase16方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() + 
		",sourceEndpoint=" + ByteUtils.toBase16(this.getSourceEndpoint()) +
		",destinationEndpoint=" + ByteUtils.toBase16(this.getDestinationEndpoint()) +
		",clusterId(msb)=" + ByteUtils.toBase16(this.getClusterId().getMsb()) +
		",clusterId(lsb)=" + ByteUtils.toBase16(this.getClusterId().getLsb()) +
		",profileId(msb)=" + ByteUtils.toBase16(this.getProfileId().getMsb()) +
		",profileId(lsb)=" + ByteUtils.toBase16(this.getProfileId().getLsb());
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:10,代码来源:ZNetExplicitRxResponse.java

示例2: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return "nodeAddress16=" + this.nodeAddress16 + 
	", nodeAddress64=" + this.nodeAddress64 + 
	", nodeIdentifier=" + this.nodeIdentifier + 
	", parentAddress=" + this.getParent() + 
	", deviceType=" + this.deviceType +
	", status=" + this.status +
	", profileId=" + ByteUtils.toBase16(this.profileId) + 
	", mfgId=" + ByteUtils.toBase16(this.mfgId);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:11,代码来源:ZBNodeDiscover.java

示例3: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() + 
		",destAddr64=" + this.destAddr64 +
		",destAddr16=" + this.destAddr16 +
		",broadcastRadius=" + this.broadcastRadius + 
		",option=" + this.option +
		",payload=" + ByteUtils.toBase16(this.payload);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:9,代码来源:ZNetTxRequest.java

示例4: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	// 8/19/09 fixed null pointer on length.get16BitValue
	return "apiId=" + this.apiId +
		",length=" + (length == null ? "null" : length.get16BitValue()) + 
		",checksum=" + ByteUtils.toBase16(checksum) +
		",error=" + this.error;
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:8,代码来源:XBeeResponse.java

示例5: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return "command=" + this.getCommand() +
		",status=" + this.getStatus() + ",value=" + 
		(this.value == null ? "null" : ByteUtils.toBase16(this.getValue())) +
		"," +
		super.toString();
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:8,代码来源:AtCommandResponse.java

示例6: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() + 
		",data=" + ByteUtils.toBase16(this.data);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:5,代码来源:ZNetRxResponse.java

示例7: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() + ",frameId=" + ByteUtils.toBase16(this.frameId);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:4,代码来源:XBeeFrameIdResponse.java

示例8: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() +
		",data=" + ByteUtils.toBase16(this.data);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:5,代码来源:RxResponse.java

示例9: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() + ",option=" + this.option + 
		",payload=" + ByteUtils.toBase16(this.payload);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:5,代码来源:TxRequestBase.java

示例10: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return ByteUtils.toBase16(this.packet);
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:4,代码来源:XBeePacket.java

示例11: unEscapePacket

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
/**
 * 
 * @param packet
 * @return
 * @throws IncompletePacketException 
 */
public static int[] unEscapePacket(int[] packet) {

	int escapeBytes = 0;
	
	if (packetEndsWithEscapeByte(packet)) {
		//packet can never end on a escape byte since the following byte is xor to unescape and will result in a array out of bounds exception
		throw new RuntimeException("Invalid packet -- packet cannot end with an escape byte " + ByteUtils.toBase16(packet));
	}

	// first check if escape byte exists, if not we don't allocate a new array
       for (int b : packet) {
           if (b == SpecialByte.ESCAPE.getValue()) {
               escapeBytes++;
           }
       }
	
	if (escapeBytes == 0) {
		return packet;
	}
	
	int[] unEscapedPacket = new int[packet.length - escapeBytes];
	
	int pos = 0;
	
	for (int i = 0; i < packet.length; i++) {
		if (packet[i] == SpecialByte.ESCAPE.getValue()) {
			// discard escape byte and un-escape following byte
			if (i >= packet.length - 1) {
				return packet;
			}
			
			unEscapedPacket[pos] = 0x20 ^ packet[++i];
		} else {
			unEscapedPacket[pos] = packet[i];
		}
		
		pos++;
	}
	
	return unEscapedPacket;
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:48,代码来源:XBeePacket.java

示例12: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return ByteUtils.toBase16(this.getAddress());
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:4,代码来源:XBeeAddress.java

示例13: toString

import com.rapplogic.xbee.util.ByteUtils; //导入方法依赖的package包/类
public String toString() {
	return super.toString() +
		",command=" + this.command +
		",value=" + (value == null ? "null" : ByteUtils.toBase16(value));
}
 
开发者ID:andrewrapp,项目名称:xbee-api,代码行数:6,代码来源:AtCommand.java


注:本文中的com.rapplogic.xbee.util.ByteUtils.toBase16方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。