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

@ -163,6 +163,11 @@ public final class ResponseTrans implements Externalizable {
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
* at the end of a request to write out the whole page, so if buffer