public class BinaryTCPClientImpl extends AbstractTCPClient
eolByte, useEolByte| Constructor and Description |
|---|
BinaryTCPClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
hexStringToByteArray(java.lang.String hexEncodedBinary)
Convert hex string to binary byte array.
|
java.lang.String |
read(java.io.InputStream is)
Deprecated.
|
java.lang.String |
read(java.io.InputStream is,
SampleResult sampleResult)
Reads data until the defined EOM byte is reached.
|
void |
write(java.io.OutputStream os,
java.io.InputStream is) |
void |
write(java.io.OutputStream os,
java.lang.String hexEncodedBinary)
Input (hex) string is converted to binary and written to the output stream.
|
getCharset, getEolByte, setCharset, setEolByte, setupTest, teardownTestpublic static byte[] hexStringToByteArray(java.lang.String hexEncodedBinary)
hexEncodedBinary - - hex-encoded binary stringjava.lang.IllegalArgumentException - if string is not an even number of hex digitspublic void write(java.io.OutputStream os,
java.lang.String hexEncodedBinary)
throws java.io.IOException
os - output streamhexEncodedBinary - hex-encoded binaryjava.io.IOException - when writing failspublic void write(java.io.OutputStream os,
java.io.InputStream is)
os - -
OutputStream for socketis - -
InputStream to be written to Socket@Deprecated
public java.lang.String read(java.io.InputStream is)
throws ReadException
is - -
InputStream for socketReadException - exception that can contain partial response (Response until error occurred)public java.lang.String read(java.io.InputStream is,
SampleResult sampleResult)
throws ReadException
read in interface TCPClientread in class AbstractTCPClientis - -
InputStream for socketsampleResult - SampleResultReadException - when reading failsTCPClient.read(java.io.InputStream, org.apache.jmeter.samplers.SampleResult)Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.