public class TCPClientImpl extends AbstractTCPClient
eolByte, useEolByte| Constructor and Description |
|---|
TCPClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
read(InputStream is)
Deprecated.
|
String |
read(InputStream is,
SampleResult sampleResult)
Reads data until the defined EOL byte is reached.
|
void |
write(OutputStream os,
InputStream is) |
void |
write(OutputStream os,
String s) |
getCharset, getEolByte, setCharset, setEolByte, setupTest, teardownTestpublic void write(OutputStream os, String s) throws IOException
os - -
OutputStream for sockets - -
String to writeIOException - when writing failspublic void write(OutputStream os, InputStream is) throws IOException
os - -
OutputStream for socketis - -
InputStream to be written to SocketIOException - when writing fails@Deprecated public String read(InputStream is) throws ReadException
is - -
InputStream for socketReadException - exception that can contain partial response (Response until error occurred)public String read(InputStream is, SampleResult sampleResult) throws ReadException
read 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)Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.