Share

Zoomable Visual Transformation Machine

Tracker: Bugs

5 add support for svgz in applet (with patch) - ID: 1827938
Last Update: Comment added ( epietrig )

It is very useful to be able to deliver the SVG in SVGZ (i.e. compressed
with GZIP) from the server to the viewer.

I have implemented this in the GVLoader class.

It works like this:
When a HTTP request is made to read the SVG from the server, the header
"Accept-Encoding: gzip" is added. This gives the server a chance to decide
if it wants to deliver SVGZ instead of SVG. (Servers that don't deliver
SVGZ does not have to).

When the response is read, a check is made if the encoding is "gzip". If
so, a GZIPInputStream is used to filter and inflate.

In the patch, I also changed some references to static members that should
not be made via the instance.


henrik lindberg ( henrik_lindberg ) - 2007-11-07 22:41

5

Closed

Fixed

Emmanuel Pietriga

zgrviewer

None

Public


Comment ( 1 )




Date: 2007-11-08 08:14
Sender: epietrigProject Admin


Patch applied in SVN on 20071108. Will be in release that follows 0.7.2a.


Log in to comment.

Attached File ( 1 )

Filename Description Download
GVLoaderPatch GVLoader.java patch Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2007-11-08 08:14 epietrig
resolution_id None 2007-11-08 08:14 epietrig
assigned_to nobody 2007-11-08 08:14 epietrig
close_date - 2007-11-08 08:14 epietrig
File Added 253336: GVLoaderPatch 2007-11-07 22:41 henrik_lindberg