public class TCPClientImpl extends AbstractTCPClient
eolByte, useEolByte
Constructor and Description |
---|
TCPClientImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
getCharset, getEolByte, setCharset, setEolByte, setupTest, teardownTest
public 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 failspublic String read(InputStream is) throws ReadException
is
- -
InputStream for socketReadException
- exception that can contain partial response (Response until error occured)Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.