public class LengthPrefixedBinaryTCPClientImpl extends TCPClientDecorator
tcpClient
eolByte, 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, intToByteArray
getCharset, setCharset, setupTest, teardownTest
public 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 TCPClient
read
in class AbstractTCPClient
is
- -
InputStream for socketsampleResult
- SampleResult
ReadException
- 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 TCPClient
getEolByte
in class AbstractTCPClient
public void setEolByte(int eolInt)
setEolByte
in interface TCPClient
setEolByte
in class AbstractTCPClient
eolInt
- The value to setCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.