Package ee.datel.dogis.utils
Class ZipUtils
java.lang.Object
ee.datel.dogis.utils.ZipUtils
ZIP utilites.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateAndUnzip(Path tempPath, org.springframework.core.io.Resource resource) Unzips and validates zip archive into target directory.
-
Method Details
-
validateAndUnzip
public static void validateAndUnzip(Path tempPath, org.springframework.core.io.Resource resource) throws IOException Unzips and validates zip archive into target directory.- Parameters:
tempPath- target directoryresource- zip resource- Throws:
IOException- technical or validations [HttpClientErrorException(HttpStatus.BAD_REQUEST)] errors
-