Thread View: borland.public.jbuilder.java.api
1 messages
1 total messages
Started by Racapi
Tue, 25 Feb 2003 17:34
GZIP file
Author: Racapi
Date: Tue, 25 Feb 2003 17:34
Date: Tue, 25 Feb 2003 17:34
29 lines
1866 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads