Here's a modified version of the servlet:
http://cvs.apache.org/~jeremias/FopServlet.java

BTW, while updating the file I found an opportunity for a little
optimization. In the servlet's case the ByteArrayOutputStream should not
be instantiated with the default constructor. This only allocates 64
bytes initially. Every time the buffer runs out of space the old buffer
is discarded and a new one with twice the previous space is allocated.
If you do "new ByteArrayOutputStream(16384)" (or an even higher number
depending on the documents you serve), you will get a slight performance
improvement almost for free. :-)

On 10.03.2005 13:02:22 Ben Gill wrote:
> Maybe the example can be updated with my version?  I have not compiled this,
> but I know it works...



Jeremias Maerki


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

Reply via email to