🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #706

GZIP file

#706
From: Racapi
Date: Tue, 25 Feb 2003 17:34
29 lines
1866 bytes
Hi!

I need help again, how no! I'm writting an application wich generate SVG
files. I want to compress this files to use the .svgz extension. I know that
it possible use gzip to compress the file, but I wonder if I can use some
Java class to do it.

I have tried this code

<code>
OutputStream f = new FileOutputStream(nameDoc);

GZIPOutputStream fz = new GZIPOutputStream(f);

writeSVG(fz);
</code>

writeSVG(fz) is function wich only use senteces like:

<code>
f.write("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG
20010904//EN\"\n".getBytes());
</code>

While I am writing this post I am thinking that maybe could write a temp
file, and then read it and use GZIPClass for compress it but I believe that
is the same that I'm doing now.

Thanks in advance.
Technical Details
Message-ID: <b3g9eo$qr4$1@newsg2.svr.pol.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.theplanet.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e5a2e5f2b6e08a67,start
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 1089d0,e5a2e5f2b6e08a67,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-02-25 09:34:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.theplanet.net!not-for-mail
From: "Racapi" <rayan_99@hotmail.com>
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language
Subject: GZIP file
Date: Tue, 25 Feb 2003 17:34:08 -0000
Lines: 31
Message-ID: <b3g9eo$qr4$1@newsg2.svr.pol.co.uk>
NNTP-Posting-Host: 217.134.32.22
X-Trace: newsg2.svr.pol.co.uk 1046194456 27492 217.134.32.22 (25 Feb 2003 17:34:16 GMT)
NNTP-Posting-Date: 25 Feb 2003 17:34:16 GMT
X-Complaints-To: abuse@theplanet.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106