Package org.hl7.fhir.utilities
Class CompressionUtilities
- java.lang.Object
-
- org.hl7.fhir.utilities.CompressionUtilities
-
public class CompressionUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description CompressionUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringmakeOSSafe(String name)static voidunzip(InputStream zip, String target)static voidunzip(InputStream zip, Path target)static PathzipSlipProtect(String zipName, Path targetDir)
-
-
-
Constructor Detail
-
CompressionUtilities
public CompressionUtilities()
-
-
Method Detail
-
unzip
public static void unzip(InputStream zip, String target) throws IOException
- Throws:
IOException
-
unzip
public static void unzip(InputStream zip, Path target) throws IOException
- Throws:
IOException
-
zipSlipProtect
public static Path zipSlipProtect(String zipName, Path targetDir) throws IOException
- Throws:
IOException
-
makeOSSafe
public static String makeOSSafe(String name)
-
-