public class LengthPrefixedBinaryTCPClientImpl extends TCPClientDecorator
tcpClienteolByte, useEolByte| Constructor and Description |
|---|
LengthPrefixedBinaryTCPClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getEolByte()
Not useful, as the byte is never used.
|
java.lang.String |
read(java.io.InputStream is)
Deprecated.
|
java.lang.String |
read(java.io.InputStream is,
SampleResult sampleResult)
Default implementation calls
TCPClient.read(InputStream) for backward compatibility |
void |
setEolByte(int eolInt)
Set the end-of-line/end-of-message byte.
|
void |
write(java.io.OutputStream os,
java.io.InputStream is) |
void |
write(java.io.OutputStream os,
java.lang.String s) |
byteArrayToInt, intToByteArraygetCharset, setCharset, setupTest, teardownTestpublic void write(java.io.OutputStream os,
java.lang.String s)
throws java.io.IOException
os - -
OutputStream for sockets - -
String to writejava.io.IOException - when writing failspublic void write(java.io.OutputStream os,
java.io.InputStream is)
throws java.io.IOException
os - -
OutputStream for socketis - -
InputStream to be written to Socketjava.io.IOException - when writing fails@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
TCPClient.read(InputStream) for backward compatibilityread in interface TCPClientread in class AbstractTCPClientis - -
InputStream for socketsampleResult - SampleResultReadException - exception that can contain partial responseTCPClient.read(java.io.InputStream, org.apache.jmeter.samplers.SampleResult)public byte getEolByte()
Get the end-of-line/end-of-message byte.
getEolByte in interface TCPClientgetEolByte in class AbstractTCPClientpublic void setEolByte(int eolInt)
setEolByte in interface TCPClientsetEolByte in class AbstractTCPClienteolInt - The value to setCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.