Managing a ZIP-based compression file in Java
-
17-12-2020 - |
Question
I know that Java natively supports the ability to navigate through and ope files compressed within a ZIP file, as that is what a JAR file is. How can I utilize this to make and manage a ZIP-based file (for saving a program's state)?
Please note that the project I am working on aims to complete its goal WITHOUT ANY EXTERNAL LIBRARIES. All libraries must be already included in Java 1.6 or 1.7.
La solution
You can use the java.util.zip package, part of the Java standard library since JDK 1.1.
Autres conseils
See java.util.zip.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow