Package com.mojang.realmsclient.client
Class FileDownload
- java.lang.Object
-
- com.mojang.realmsclient.client.FileDownload
-
public class FileDownload extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
FileDownload.DownloadCountingOutputStream
(package private) class
FileDownload.ProgressListener
(package private) class
FileDownload.ResourcePackProgressListener
-
Field Summary
Fields Modifier and Type Field Description private boolean
cancelled
private java.lang.Thread
currentThread
private boolean
error
private boolean
extracting
private boolean
finished
private static java.lang.String[]
INVALID_FILE_NAMES
private static org.apache.logging.log4j.Logger
LOGGER
private org.apache.http.client.methods.HttpGet
request
private org.apache.http.client.config.RequestConfig
requestConfig
private java.io.File
resourcePackPath
private java.io.File
tempFile
-
Constructor Summary
Constructors Constructor Description FileDownload()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
long
contentLength(java.lang.String p_224827_1_)
private static void
deletePlayerTag(java.io.File p_237689_0_)
void
download(WorldDownload p_237688_1_, java.lang.String p_237688_2_, RealmsDownloadLatestWorldScreen.DownloadStatus p_237688_3_, SaveFormat p_237688_4_)
static java.lang.String
findAvailableFolderName(java.lang.String p_224828_0_)
boolean
isError()
boolean
isExtracting()
boolean
isFinished()
private void
untarGzipArchive(java.lang.String p_237690_1_, java.io.File p_237690_2_, SaveFormat p_237690_3_)
-
-
-
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
-
-
Method Detail
-
contentLength
public long contentLength(java.lang.String p_224827_1_)
-
download
public void download(WorldDownload p_237688_1_, java.lang.String p_237688_2_, RealmsDownloadLatestWorldScreen.DownloadStatus p_237688_3_, SaveFormat p_237688_4_)
-
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_)
-
-