public class StiZipWriter20
extends java.lang.Object
| Constructor and Description |
|---|
StiZipWriter20(java.io.File zipFile) |
StiZipWriter20(java.io.OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public StiZipWriter20(java.io.File zipFile)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic StiZipWriter20(java.io.OutputStream outputStream)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void addFile(java.lang.String path,
java.lang.String fileName,
org.w3c.dom.Document doc)
throws java.io.IOException,
javax.xml.transform.TransformerException
Document to zippath - Document in zipfileName - of Documentdoc - Documentjava.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic void addFile(java.lang.String path,
java.lang.String fileName,
byte[] bytes)
throws java.io.IOException
path - of byta arrayfileName - of byta arraybytes - java.io.IOExceptionpublic void putNexEntry(java.lang.String path)
throws java.io.IOException
path - java.io.IOExceptionpublic void finish()
throws java.io.IOException
java.io.IOExceptionCopyright © 2020 Stimulsoft. All Rights Reserved.