TCPClientpublic class LengthPrefixedBinaryTCPClientImpl extends TCPClientDecorator
eolByte, useEolBytetcpClient| Constructor | Description |
|---|---|
LengthPrefixedBinaryTCPClientImpl() |
| Modifier and Type | Method | 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) |
getCharset, setCharset, setupTest, teardownTestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbyteArrayToInt, intToByteArraypublic 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-2018 Apache Software Foundation. All Rights Reserved.