Class LengthPrefixedBinaryTCPClientImpl
java.lang.Object
org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient
org.apache.jmeter.protocol.tcp.sampler.TCPClientDecorator
org.apache.jmeter.protocol.tcp.sampler.LengthPrefixedBinaryTCPClientImpl
- All Implemented Interfaces:
TCPClient
Implements binary length-prefixed binary data.
This is used in ISO8583 for example.
-
Field Summary
Fields inherited from class TCPClientDecorator
tcpClientFields inherited from class AbstractTCPClient
eolByte, useEolByte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteNot useful, as the byte is never used.read(InputStream is) voidsetEolByte(int eolInt) Set the end-of-line/end-of-message byte.voidwrite(OutputStream os, InputStream is) voidwrite(OutputStream os, String s) Methods inherited from class TCPClientDecorator
byteArrayToInt, intToByteArrayMethods inherited from class AbstractTCPClient
getCharset, setCharset, setupTest, teardownTest
-
Constructor Details
-
LengthPrefixedBinaryTCPClientImpl
public LengthPrefixedBinaryTCPClientImpl()
-
-
Method Details
-
write
- Parameters:
os- - OutputStream for sockets- - String to write- Throws:
IOException- when writing fails
-
write
- Parameters:
os- - OutputStream for socketis- - InputStream to be written to Socket- Throws:
IOException- when writing fails
-
read
- Parameters:
is- - InputStream for socket- Returns:
- String read from socket
- Throws:
ReadException- exception that can contain partial response (Response until error occured)
-
getEolByte
public byte getEolByte()Not useful, as the byte is never used.Get the end-of-line/end-of-message byte.
- Specified by:
getEolBytein interfaceTCPClient- Overrides:
getEolBytein classAbstractTCPClient- Returns:
- Returns the eolByte.
-
setEolByte
public void setEolByte(int eolInt) Set the end-of-line/end-of-message byte. If the value is out of range of a byte, then it is to be ignored.- Specified by:
setEolBytein interfaceTCPClient- Overrides:
setEolBytein classAbstractTCPClient- Parameters:
eolInt- The value to set
-