Package net.mcreator.io.zip
Class ZipIO
java.lang.Object
net.mcreator.io.zip.ZipIO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckIfJMod(File zipfile) static booleancheckIfZip(File zipfile) static StringentryToString(ZipFile file, ZipEntry entry) static voiditerateZip(File zipFilePointer, Consumer<ZipEntry> action, boolean sortByName) static ZipFileopenZipFile(File zipFile) static StringreadCodeInZip(File zipFilePointer, String path) static <T> TreadFileInZip(File zipFilePointer, String path, BiFunction<ZipFile, ZipEntry, T> transformer) static voidstatic 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
-