Package org.wso2.carbon.utils
Class ArchiveManipulator
java.lang.Object
org.wso2.carbon.utils.ArchiveManipulator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveDir(String destArchive, String sourceDir) Archive a directoryvoidarchiveFile(String from, String to) Archive a fileString[]List the contents of an archivevoidvoidextractFromStream(InputStream inputStream, String extractDir) protected Stringprotected voidzipDir(File zipDir, ZipOutputStream zos)
-
Constructor Details
-
ArchiveManipulator
public ArchiveManipulator()
-
-
Method Details
-
archiveDir
Archive a directory- Parameters:
destArchive-sourceDir-- Throws:
IOException
-
archiveFile
Archive a file- Parameters:
from-to-- Throws:
IOException
-
check
List the contents of an archive- Parameters:
archive-- Returns:
- List of Zip Entries
- Throws:
IOException
-
extract
- Throws:
IOException
-
extractFromStream
- Throws:
IOException
-
zipDir
- Throws:
IOException
-
getZipEntryPath
-