[zb4osgi-changeset] [scm] ZigBee 4 OSGi repository change: r1083 - /projects/zb4osgi/trunk/zigbee.cc2480.datalink/src/main/java/com/itaca/ztool/util/ByteUtils.java
scm-notify at zb4osgi.aaloa.org
scm-notify at zb4osgi.aaloa.org
Mon Nov 3 22:58:12 CET 2014
Author: stefano.lenzi
Date: Mon Nov 3 22:58:12 2014
New Revision: 1083
Log:
Improved javadoc
Modified:
projects/zb4osgi/trunk/zigbee.cc2480.datalink/src/main/java/com/itaca/ztool/util/ByteUtils.java
Modified: projects/zb4osgi/trunk/zigbee.cc2480.datalink/src/main/java/com/itaca/ztool/util/ByteUtils.java
==============================================================================
--- projects/zb4osgi/trunk/zigbee.cc2480.datalink/src/main/java/com/itaca/ztool/util/ByteUtils.java (original)
+++ projects/zb4osgi/trunk/zigbee.cc2480.datalink/src/main/java/com/itaca/ztool/util/ByteUtils.java Mon Nov 3 22:58:12 2014
@@ -184,9 +184,15 @@
}
/**
- *
- * @param bytes the String representing the bytes in hex form
- * @return the formatted bytes
+ * This method convert string that matches the following formats:<ul>
+ * <li>0xfe 0x19 0x44 0x81 0x00</li>
+ * <li>fe 19 44 81 00</li>
+ * </ul>
+ * to the following array of int<br>
+ * [ 254, 25, 68, 129, 00 ]
+ *
+ * @param bytes the {@link String} representing the bytes in hex form (as described above)
+ * @return the int array parsed from the argument
* @since 0.6.0 - Revision 60
*/
public static int[] fromBase16toIntArray(String bytes){
More information about the Commit
mailing list