added setBufferLength() method to truncate the response buffer.
This commit is contained in:
parent
30dd6b206e
commit
c796392946
1 changed files with 5 additions and 0 deletions
|
@ -163,6 +163,11 @@ public final class ResponseTrans implements Externalizable {
|
||||||
return buffer.length ();
|
return buffer.length ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setBufferLength(int l) {
|
||||||
|
if (buffer != null)
|
||||||
|
buffer.setLength (l);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Append a string to the response unchanged. This is often called
|
* Append a string to the response unchanged. This is often called
|
||||||
* at the end of a request to write out the whole page, so if buffer
|
* at the end of a request to write out the whole page, so if buffer
|
||||||
|
|
Loading…
Add table
Reference in a new issue