*/
public byte[] readResponse(SampleResult sampleResult, InputStream in, int length) throws IOException {
byte[] readBuffer = getThreadContext().getReadBuffer();
byte[] readBuffer = new byte[8192];
int bufferSize=32;// Enough for MD5
MessageDigest md=null;
private int threadNum;
private byte[] readBuffer = null;
private boolean isReinitSubControllers = false;
JMeterContext() {
previousSampler = null;
samplingStarted = false;
threadNum = 0;
readBuffer = null;
thread = null;
isReinitSubControllers = false;
}
return variables;
/**
* A temporary buffer that can be shared between samplers in a thread.
*
* @return the shared read buffer
public byte[] getReadBuffer() {
if (readBuffer == null) {
readBuffer = new byte[8192];
return readBuffer;
public void setVariables(JMeterVariables vars) {
this.variables = vars;