Class FileDownload


  • public class FileDownload
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • cancelled

        private volatile boolean cancelled
      • finished

        private volatile boolean finished
      • error

        private volatile boolean error
      • extracting

        private volatile boolean extracting
      • tempFile

        private volatile java.io.File tempFile
      • resourcePackPath

        private volatile java.io.File resourcePackPath
      • request

        private volatile org.apache.http.client.methods.HttpGet request
      • currentThread

        private java.lang.Thread currentThread
      • requestConfig

        private final org.apache.http.client.config.RequestConfig requestConfig
      • INVALID_FILE_NAMES

        private static final java.lang.String[] INVALID_FILE_NAMES
    • Constructor Detail

      • FileDownload

        public FileDownload()
    • Method Detail

      • contentLength

        public long contentLength​(java.lang.String p_224827_1_)
      • cancel

        public void cancel()
      • isFinished

        public boolean isFinished()
      • isError

        public boolean isError()
      • isExtracting

        public boolean isExtracting()
      • findAvailableFolderName

        public static java.lang.String findAvailableFolderName​(java.lang.String p_224828_0_)
      • untarGzipArchive

        private void untarGzipArchive​(java.lang.String p_237690_1_,
                                      java.io.File p_237690_2_,
                                      SaveFormat p_237690_3_)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • deletePlayerTag

        private static void deletePlayerTag​(java.io.File p_237689_0_)