Class ZipUtility

  • public class ZipUtility
    extends Object
    Utility class for some ZIP compression related issues.
    • Constructor Detail

      • ZipUtility

        public ZipUtility​()
    • Method Detail

      • toFileNameFromZip

        public static String toFileNameFromZip​(String aZipFileName)
        Truncates the ".zip" suffix from the filename and returns the result. For example a file with name "" results in "log-2023-07-12.txt".
        aZipFileName - The file name of the ZIP file for which to get the "inner" file name.
        The "inner" file name if the file suffix was ".zip", else null.