public class TCPClientImpl extends AbstractTCPClient
eolByte, useEolByte
Constructor and Description |
---|
TCPClientImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
read(java.io.InputStream is)
Deprecated.
|
java.lang.String |
read(java.io.InputStream is,
SampleResult sampleResult)
Reads data until the defined EOL byte is reached.
|
void |
write(java.io.OutputStream os,
java.io.InputStream is) |
void |
write(java.io.OutputStream os,
java.lang.String s) |
getCharset, getEolByte, setCharset, setEolByte, 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
read
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)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.