Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.jmeter.protocol.tcp.sampler
Class TCPClientImpl

    java.lang.Object
      org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient
          org.apache.jmeter.protocol.tcp.sampler.TCPClientImpl

All 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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TCPClientImpl

    public TCPClientImpl()

Method Detail

### write

    public void write(OutputStream os,
                      String s)

  Parameters:
    `os` - - OutputStream for socket
    `s` - - String to write

### write

    public void write(OutputStream os,
                      InputStream is)

  Parameters:
    `os` - - OutputStream for socket
    `is` - - InputStream to be written to Socket

### 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.

  Parameters:
    `is` - - InputStream for socket
  Returns:
    String read from socket

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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