"RESTREPO, ALEXANDER G [Non-Pharmacia/1000]" wrote:

> Hi:
>
> Can someone provide an example of "dumping"
> out the ECS HTML Elements to a PrintWriter or an
> OutputStream?
>
> Wouldn't using a StringBuffer be just as efficient?
>

No it's not near as efficient. To use a string buffer you would have to
call StringBuffer.append( element.toString() ) .  The way the toString
method works is that it creates a ByteArrayOutputStream then calls
element.output(ByteArrayOutputStream) then returns the result of
ByteArrayOutputStream.toString().

-stephan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to