com.stimulsoft.base.utils
Class StiZipWriter20

java.lang.Object
  extended by com.stimulsoft.base.utils.StiZipWriter20

public class StiZipWriter20
extends java.lang.Object

Zip file helper Copyright Stimulsoft


Constructor Summary
StiZipWriter20(java.io.File zipFile)
           
StiZipWriter20(java.io.OutputStream outputStream)
           
 
Method Summary
 void addFile(java.lang.String path, java.lang.String fileName, byte[] bytes)
          Put byta array in zip.
 void addFile(java.lang.String path, java.lang.String fileName, org.w3c.dom.Document doc)
          Add Document to zip
 void finish()
          Close zip
 void putNexEntry(java.lang.String path)
          Put next entry
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiZipWriter20

public StiZipWriter20(java.io.File zipFile)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

StiZipWriter20

public StiZipWriter20(java.io.OutputStream outputStream)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

addFile

public void addFile(java.lang.String path,
                    java.lang.String fileName,
                    org.w3c.dom.Document doc)
             throws java.io.IOException,
                    javax.xml.transform.TransformerException
Add Document to zip

Parameters:
path - Document in zip
fileName - of Document
doc - Document
Throws:
java.io.IOException
javax.xml.transform.TransformerException

addFile

public void addFile(java.lang.String path,
                    java.lang.String fileName,
                    byte[] bytes)
             throws java.io.IOException
Put byta array in zip.

Parameters:
path - of byta array
fileName - of byta array
bytes -
Throws:
java.io.IOException

putNexEntry

public void putNexEntry(java.lang.String path)
                 throws java.io.IOException
Put next entry

Parameters:
path -
Throws:
java.io.IOException

finish

public void finish()
            throws java.io.IOException
Close zip

Throws:
java.io.IOException