I am not sure exactly what you are trying to accomplish, but if the goal is to get document you are going to put on the canvas as small as possible I would suggest looking at how you can take a loaded SVGDocument and write the DOM as a String. Then you can use the Deflater class in java.util.zip to compress it into a relatively small byte[]. To load it, use the Inflater class in java.util.zip and create a Document similar to the examples at http://xml.apache.org/batik/domapi.html#creating
I am not sure if that is helpful at all, but if you wanted to see some examples of anything above just ask.
Good Luck, TJ Teegan
From: "Johan Duflost" <[EMAIL PROTECTED]> Reply-To: "Batik Users" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: serialized applet Date: Thu, 16 Dec 2004 11:17:28 +0100
Hi,
I try to serialized an applet containing a jsvgcanvas component but I get NotSerializable exceptions in appletviewer output. Does anybody know if there's a way to solve that problem ? I just want to reduce the loading time of my batik-enabled applet by preinitializing it.
Johan
Johan Duflost Analyst programmer Belgian Buiodiversity Information Facility Universite libre de Bruxelles [EMAIL PROTECTED]
_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
