Class 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".
    • Constructor Detail

      • TCPClientImpl

        public TCPClientImpl()
    • Method Detail

      • read

        public String read​(InputStream is)
                    throws ReadException
        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
        Throws:
        ReadException - exception that can contain partial response (Response until error occured)