org.apache.jmeter.protocol.tcp.sampler
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
public class LengthPrefixedBinaryTCPClientImpl
- extends TCPClientDecorator
Implements binary length-prefixed binary data.
This is used in ISO8583 for example.
Method Summary |
byte |
getEolByte()
Not useful, as the byte is never used. |
java.lang.String |
read(java.io.InputStream is)
|
void |
setEolByte(int eolInt)
Set the end-of-line/end-of-message byte. |
void |
write(java.io.OutputStream os,
java.io.InputStream is)
|
void |
write(java.io.OutputStream os,
java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LengthPrefixedBinaryTCPClientImpl
public LengthPrefixedBinaryTCPClientImpl()
write
public void write(java.io.OutputStream os,
java.lang.String s)
- Parameters:
os
- -
OutputStream for sockets
- -
String to write
write
public void write(java.io.OutputStream os,
java.io.InputStream is)
- Parameters:
os
- -
OutputStream for socketis
- -
InputStream to be written to Socket
read
public java.lang.String read(java.io.InputStream is)
- Parameters:
is
- -
InputStream for socket
- Returns:
- String read from socket
getEolByte
public byte getEolByte()
- Not useful, as the byte is never used.
- Specified by:
getEolByte
in interface TCPClient
- Overrides:
getEolByte
in class AbstractTCPClient
- Returns:
- Returns the eolByte.
setEolByte
public void setEolByte(int eolInt)
- Description copied from interface:
TCPClient
- 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:
setEolByte
in interface TCPClient
- Overrides:
setEolByte
in class AbstractTCPClient
- Parameters:
eolInt
- The eolByte to set.
Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.