Package net.minecraft.util
Class HttpUtil
java.lang.Object
net.minecraft.util.HttpUtil
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Path
cachedFilePath
(Path p_314479_, com.google.common.hash.HashCode p_314627_) private static boolean
checkExistingFile
(Path p_314420_, com.google.common.hash.HashFunction p_314503_, com.google.common.hash.HashCode p_314584_) private static com.google.common.hash.HashCode
downloadAndHash
(com.google.common.hash.HashFunction p_314429_, int p_314497_, HttpUtil.DownloadProgressListener p_314419_, InputStream p_314557_, Path p_314618_) static Path
downloadFile
(Path p_314509_, URL p_314583_, Map<String, String> p_314414_, com.google.common.hash.HashFunction p_314462_, com.google.common.hash.HashCode p_314495_, int p_314514_, Proxy p_314631_, HttpUtil.DownloadProgressListener p_314610_) static int
private static com.google.common.hash.HashCode
static boolean
isPortAvailable
(int p_259872_) private static void
updateModificationTime
(Path p_314996_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
HttpUtil
private HttpUtil()
-
-
Method Details
-
downloadFile
-
updateModificationTime
-
hashFile
private static com.google.common.hash.HashCode hashFile(Path p_314478_, com.google.common.hash.HashFunction p_314630_) throws IOException - Throws:
IOException
-
checkExistingFile
private static boolean checkExistingFile(Path p_314420_, com.google.common.hash.HashFunction p_314503_, com.google.common.hash.HashCode p_314584_) throws IOException - Throws:
IOException
-
cachedFilePath
-
downloadAndHash
private static com.google.common.hash.HashCode downloadAndHash(com.google.common.hash.HashFunction p_314429_, int p_314497_, HttpUtil.DownloadProgressListener p_314419_, InputStream p_314557_, Path p_314618_) throws IOException - Throws:
IOException
-
getAvailablePort
public static int getAvailablePort() -
isPortAvailable
public static boolean isPortAvailable(int p_259872_)
-