public class LengthPrefixedBinaryTCPClientImpl extends TCPClientDecorator
tcpClienteolByte, useEolByte| Constructor and Description |
|---|
LengthPrefixedBinaryTCPClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getEolByte()
Not useful, as the byte is never used.
|
String |
read(InputStream is) |
void |
setEolByte(int eolInt)
Set the end-of-line/end-of-message byte.
|
void |
write(OutputStream os,
InputStream is) |
void |
write(OutputStream os,
String s) |
byteArrayToInt, intToByteArraygetCharset, setCharset, setupTest, teardownTestpublic 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)public byte getEolByte()
Get the end-of-line/end-of-message byte.
getEolByte in interface TCPClientgetEolByte in class AbstractTCPClientpublic void setEolByte(int eolInt)
setEolByte in interface TCPClientsetEolByte in class AbstractTCPClienteolInt - The value to setCopyright © 1998-2017 Apache Software Foundation. All Rights Reserved.