Package org.xipki.apppackage
Class PackageInfoBuilder
- java.lang.Object
-
- org.xipki.apppackage.PackageInfoBuilder
-
public class PackageInfoBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description PackageInfoBuilder(PackageConf conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFile(byte[] bytes, long lastModified, Path relativePath, Integer intPermission, File targetDir)voidaddFolder(Path baseSrcDir, Path folder)StringaddZipEntry(byte[] bytes, String name, File targetDir)voidaddZipFile(ZipFileInfo zipFileInfo)PackageInfobuild()
-
-
-
Constructor Detail
-
PackageInfoBuilder
public PackageInfoBuilder(PackageConf conf)
-
-
Method Detail
-
addZipFile
public void addZipFile(ZipFileInfo zipFileInfo)
-
addFile
public void addFile(byte[] bytes, long lastModified, Path relativePath, Integer intPermission, File targetDir) throws IOException- Throws:
IOException
-
addZipEntry
public String addZipEntry(byte[] bytes, String name, File targetDir) throws IOException
- Throws:
IOException
-
build
public PackageInfo build()
-
-