org.apache.jmeter.protocol.tcp.sampler

Class LengthPrefixedBinaryTCPClientImpl

Implemented Interfaces:
TCPClient

public class LengthPrefixedBinaryTCPClientImpl
extends TCPClientDecorator

Implements binary length-prefixed binary data. This is used in ISO8583 for example.

Field Summary

Fields inherited from class org.apache.jmeter.protocol.tcp.sampler.TCPClientDecorator

tcpClient

Fields inherited from class org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient

eolByte, useEolByte

Constructor Summary

LengthPrefixedBinaryTCPClientImpl()

Method Summary

byte
getEolByte()
Not useful, as the byte is never used.
String
read(InputStream is)
void
setEolByte(int eolInt)
void
write(OutputStream os, InputStream is)
void
write(OutputStream os, String s)

Methods inherited from class org.apache.jmeter.protocol.tcp.sampler.TCPClientDecorator

byteArrayToInt, intToByteArray

Methods inherited from class org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient

getEolByte, setEolByte, setupTest, teardownTest

Constructor Details

LengthPrefixedBinaryTCPClientImpl

public LengthPrefixedBinaryTCPClientImpl()

Method Details

getEolByte

public byte getEolByte()
Not useful, as the byte is never used.
Specified by:
getEolByte in interface TCPClient
Overrides:
getEolByte in interface AbstractTCPClient
Returns:
Returns the eolByte.

read

public String read(InputStream is)
Specified by:
read in interface TCPClient
Parameters:
is - - InputStream for socket
Returns:
String read from socket

setEolByte

public void setEolByte(int eolInt)
Specified by:
setEolByte in interface TCPClient
Overrides:
setEolByte in interface AbstractTCPClient
Parameters:
eolInt - The eolByte to set.

write

public void write(OutputStream os,
                  InputStream is)
Specified by:
write in interface TCPClient
Parameters:
os - - OutputStream for socket
is - - InputStream to be written to Socket

write

public void write(OutputStream os,
                  String s)
Specified by:
write in interface TCPClient
Parameters:
os - - OutputStream for socket
s - - String to write

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.