opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fop-user@xml.apache.org 11 March 2005 • 4:25PM -0500

Re: FopServlet
by Jeremias Maerki

REPLY TO AUTHOR
 
REPLY TO GROUP




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: fop-user-unsubscribe@xml....
For additional commands, e-mail: fop-user-help@xml....

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.