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, intToByteArraysetupTest, teardownTestpublic void write(OutputStream os, String s)
os - -
OutputStream for sockets - -
String to writepublic void write(OutputStream os, InputStream is)
os - -
OutputStream for socketis - -
InputStream to be written to Socketpublic String read(InputStream is)
is - -
InputStream for socketpublic 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-2012 Apache Software Foundation. All Rights Reserved.