Package net.mcreator.io.zip
Class ZipIO
java.lang.Object
net.mcreator.io.zip.ZipIO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkIfJMod
(File zipfile) static boolean
checkIfZip
(File zipfile) static String
entryToString
(ZipFile file, ZipEntry entry) static void
iterateZip
(File zipFilePointer, Consumer<ZipEntry> action, boolean sortByName) static ZipFile
openZipFile
(File zipFile) static String
readCodeInZip
(File zipFilePointer, String path) static <T> T
readFileInZip
(File zipFilePointer, String path, BiFunction<ZipFile, ZipEntry, T> transformer) static void
static void
-
Constructor Details
-
ZipIO
public ZipIO()
-
-
Method Details
-
openZipFile
- Throws:
IOException
-
unzip
-
iterateZip
-
readFileInZip
public static <T> T readFileInZip(File zipFilePointer, String path, BiFunction<ZipFile, ZipEntry, T> transformer) -
entryToString
-
readCodeInZip
-
zipDir
public static void zipDir(String dirName, String nameZipFile, String... excludes) throws IOException - Throws:
IOException
-
checkIfZip
-
checkIfJMod
-