org.apache.jmeter.protocol.tcp.sampler

Class TCPClientImpl

Implemented Interfaces:
TCPClient

public class TCPClientImpl
extends AbstractTCPClient

Sample TCPClient implementation. Reads data until the defined EOL byte is reached. If there is no EOL byte defined, then reads until the end of the stream is reached. The EOL byte is defined by the property "tcp.eolByte".

Field Summary

Fields inherited from class org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient

eolByte, useEolByte

Constructor Summary

TCPClientImpl()

Method Summary

String
read(InputStream is)
Reads data until the defined EOL byte is reached.
void
write(OutputStream os, InputStream is)
void
write(OutputStream os, String s)

Methods inherited from class org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient

getEolByte, setEolByte, setupTest, teardownTest

Constructor Details

TCPClientImpl

public TCPClientImpl()

Method Details

read

public String read(InputStream is)
Reads data until the defined EOL byte is reached. If there is no EOL byte defined, then reads until the end of the stream is reached.
Specified by:
read in interface TCPClient

write

public void write(OutputStream os,
                  InputStream is)
Specified by:
write in interface TCPClient

write

public void write(OutputStream os,
                  String s)
Specified by:
write in interface TCPClient

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.