Class DefaultPackageInfo

    • Method Detail

      • read

        @Nullable
        public static @Nullable PackageInfo read​(@NotNull
                                                 @NotNull File file)
                                          throws IOException
        Reads the package info from a given file
        Parameters:
        file - the package file as zip or an exploded directory containing metadata.
        Returns:
        the package info if the package is valid, otherwise null.
        Throws:
        IOException - if an error occurs.
      • getId

        public PackageId getId()
        Returns the package id.
        Specified by:
        getId in interface PackageInfo
        Returns:
        the package id.