You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/11/05 19:30:30 UTC
svn commit: r711648 -
/jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientDecorator.java
Author: sebb
Date: Wed Nov 5 10:30:29 2008
New Revision: 711648
URL: http://svn.apache.org/viewvc?rev=711648&view=rev
Log:
Javadoc
Modified:
jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientDecorator.java
Modified: jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientDecorator.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientDecorator.java?rev=711648&r1=711647&r2=711648&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientDecorator.java (original)
+++ jakarta/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPClientDecorator.java Wed Nov 5 10:30:29 2008
@@ -39,6 +39,7 @@
* @param len
* - length of required byte array
* @return Byte array representation of input value
+ * @throws IllegalArgumentException if not length 2 or 4 or outside range of a short int.
*/
public static byte[] intToByteArray(int value, int len) {
if (len == 2 || len == 4) {
@@ -64,6 +65,7 @@
* @param b
* - Byte array to be converted
* @return Integer value of input byte array
+ * @throws IllegalArgumentException if ba is null or not length 2 or 4
*/
public static int byteArrayToInt(byte[] b) {
if (b != null && (b.length == 2 || b.length == 4)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org