2021-06-28 10:22:54 -04:00
|
|
|
CLASS net/minecraft/class_6397 net/minecraft/util/ZipCompressor
|
2021-06-05 05:32:32 -04:00
|
|
|
COMMENT A ZIP compressor builds up a ZIP file. It completes the ZIP file when it is
|
|
|
|
COMMENT {@linkplain #close() closed}. All its methods and constructors throw
|
|
|
|
COMMENT {@link java.io.UncheckedIOException} when an I/O error occurs.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @implSpec The compressor writes the contents of the ZIP to a {@link #temp} file
|
|
|
|
COMMENT first; then, it replaces the desired {@link #file} with the temp file when
|
|
|
|
COMMENT closed.
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_33864 LOGGER Lorg/slf4j/Logger;
|
2021-06-05 05:32:32 -04:00
|
|
|
FIELD field_33865 file Ljava/nio/file/Path;
|
|
|
|
FIELD field_33866 temp Ljava/nio/file/Path;
|
2021-06-01 11:39:22 -04:00
|
|
|
FIELD field_33867 zip Ljava/nio/file/FileSystem;
|
|
|
|
METHOD <init> (Ljava/nio/file/Path;)V
|
2021-06-05 05:32:32 -04:00
|
|
|
COMMENT Creates a ZIP compressor.
|
|
|
|
ARG 1 file
|
|
|
|
COMMENT the path of the ZIP file
|
2021-06-01 11:39:22 -04:00
|
|
|
METHOD method_37161 copyAll (Ljava/nio/file/Path;)V
|
2021-06-05 05:32:32 -04:00
|
|
|
COMMENT Copies the {@code source} file or directory to the root of the ZIP.
|
|
|
|
ARG 1 source
|
|
|
|
COMMENT the source file or directory to copy
|
2021-06-01 11:39:22 -04:00
|
|
|
METHOD method_37162 copy (Ljava/nio/file/Path;Ljava/io/File;)V
|
2021-06-05 05:32:32 -04:00
|
|
|
COMMENT Copies a {@code source} file to the {@code target} path within the ZIP.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If the {@code source} is a directory, then an empty directory would be
|
|
|
|
COMMENT copied. The {@code target} should be a relative path, as it will be resolved
|
|
|
|
COMMENT against the root of the ZIP.
|
|
|
|
ARG 1 target
|
|
|
|
COMMENT the target path in the ZIP
|
|
|
|
ARG 2 source
|
|
|
|
COMMENT the source file to copy
|
2021-06-01 11:39:22 -04:00
|
|
|
METHOD method_37163 write (Ljava/nio/file/Path;Ljava/lang/String;)V
|
2021-06-05 05:32:32 -04:00
|
|
|
COMMENT Writes the {@code content}, in UTF-8 encoding, to the {@code target} path
|
|
|
|
COMMENT within the ZIP.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The {@code target} should be a relative path, as it will be resolved
|
|
|
|
COMMENT against the root of the ZIP.
|
|
|
|
ARG 1 target
|
|
|
|
COMMENT the target path in the ZIP
|
2021-06-01 11:39:22 -04:00
|
|
|
ARG 2 content
|
2021-06-05 05:32:32 -04:00
|
|
|
COMMENT the file content to write in UTF-8
|
2021-06-01 11:39:22 -04:00
|
|
|
METHOD method_37164 (Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
|
|
|
|
ARG 0 path
|
|
|
|
ARG 1 attributes
|