added setBufferLength() method to truncate the response buffer.

This commit is contained in:
hns 2002-10-15 17:48:24 +00:00
parent 30dd6b206e
commit c796392946

View file

@ -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