Class Archive.ArchiveFile

  • Direct Known Subclasses:
    Archive.CompleteType, Archive.PatchType
    Enclosing class:
    Archive

    public abstract static class Archive.ArchiveFile
    extends java.lang.Object
    General parent for the actual files referenced in an archive.
    • Constructor Detail

      • ArchiveFile

        public ArchiveFile()
    • Method Detail

      • getTypedChecksum

        @NonNull
        public Checksum getTypedChecksum()
        Returns the checksum for the zip.
      • setTypedChecksum

        public void setTypedChecksum​(@NonNull
                                     Checksum checksum)
        Sets the checksum for this zip.
      • getLegacyChecksum

        protected java.lang.String getLegacyChecksum()
      • setLegacyChecksum

        protected void setLegacyChecksum​(java.lang.String checksum)
      • getUrl

        @NonNull
        public abstract java.lang.String getUrl()
        Returns the URL to download from.
      • setUrl

        public void setUrl​(@NonNull
                           java.lang.String url)
        Sets the URL to download from.
      • getSize

        public abstract long getSize()
        Returns the size of the zip.
      • setSize

        public void setSize​(long size)
        Sets the size of the zip;