Class ResourcePackZipWriter
java.lang.Object
net.raphimc.viabedrock.api.resourcepack.content.ResourcePackZipWriter
Compresses large archives in parallel while preserving entry order and bounded working storage.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordEntry bytes remain owned by the caller and must not change during the write. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwrite(List<ResourcePackZipWriter.Entry> entries, OutputStream output) Writes entries in caller order, bounds compression workers and closes the supplied output.
-
Method Details
-
write
public static void write(List<ResourcePackZipWriter.Entry> entries, OutputStream output) throws IOException Writes entries in caller order, bounds compression workers and closes the supplied output.- Throws:
IOException
-