Package org.hl7.fhir.utilities
Class ZipGenerator
- java.lang.Object
-
- org.hl7.fhir.utilities.ZipGenerator
-
public class ZipGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description ZipGenerator(String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBytes(String statedPath, byte[] content, boolean omitIfExists)voidaddFileName(String statedPath, String actualPath, boolean omitIfExists)voidaddFiles(String actualDir, String statedDir, String ext, String noExt)voidaddFilesFiltered(String actualDir, String statedDir, String ext, String[] noExt)voidaddFileSource(String path, String cnt, boolean omitIfExists)voidaddFolder(String actualDir, String statedDir, boolean omitIfExists)voidaddFolder(String actualDir, String statedDir, boolean omitIfExists, String noExt)voidaddFromZip(String zipFilename)voidaddMimeTypeFile(String statedPath, String actualPath)voidaddStream(String statedPath, InputStream fi, boolean omitIfExists)voidclose()
-
-
-
Constructor Detail
-
ZipGenerator
public ZipGenerator(String filename) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
close
public void close() throws IOException
- Throws:
IOException
-
addFromZip
public void addFromZip(String zipFilename) throws IOException
- Throws:
IOException
-
addFolder
public void addFolder(String actualDir, String statedDir, boolean omitIfExists) throws IOException
- Throws:
IOException
-
addFolder
public void addFolder(String actualDir, String statedDir, boolean omitIfExists, String noExt) throws IOException
- Throws:
IOException
-
addFiles
public void addFiles(String actualDir, String statedDir, String ext, String noExt) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
addFilesFiltered
public void addFilesFiltered(String actualDir, String statedDir, String ext, String[] noExt) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
addFileSource
public void addFileSource(String path, String cnt, boolean omitIfExists) throws IOException
- Throws:
IOException
-
addFileName
public void addFileName(String statedPath, String actualPath, boolean omitIfExists) throws IOException
- Throws:
IOException
-
addBytes
public void addBytes(String statedPath, byte[] content, boolean omitIfExists) throws IOException
- Throws:
IOException
-
addMimeTypeFile
public void addMimeTypeFile(String statedPath, String actualPath) throws IOException
- Throws:
IOException
-
addStream
public void addStream(String statedPath, InputStream fi, boolean omitIfExists) throws IOException
- Throws:
IOException
-
-