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
|
@ -162,6 +162,11 @@ public final class ResponseTrans implements Externalizable {
|
|||
return 0;
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue