Title: Message
  public static void main4(String[] args) throws Exception{
    java.io.FileInputStream fis= new FileInputStream("c:\\test.svg");
    java.util.zip.GZIPOutputStream zos= new java.util.zip.GZIPOutputStream(
      new FileOutputStream("c:\\test.svgz")
    );
    int n = -1;
    while( (n=fis.read())!=-1){
      zos.write(n);
    }
    zos.flush();
    zos.close();
  }
so, I think, when print the Document to .svgz, only replease the FileOuputStream to GZIPOutputStream.
----- Original Message -----
Sent: Monday, April 08, 2002 4:13 PM
Subject: SVGz

Hi,
 
sorry if this question has already been answered ;-)
 
is there a way for Batik to create .svgz files or do I have to use java io streams to manage the compression ?
 
Thank you for your answer (sample code appreciated)
 

S�bastien Regnoult
Otake - Montpellier - France
[EMAIL PROTECTED]

 

Reply via email to