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_310769_, com.google.common.hash.HashCode p_311855_) private static boolean
checkExistingFile
(Path p_309713_, com.google.common.hash.HashFunction p_311423_, com.google.common.hash.HashCode p_312149_) private static com.google.common.hash.HashCode
downloadAndHash
(com.google.common.hash.HashFunction p_312168_, int p_311506_, HttpUtil.DownloadProgressListener p_311732_, InputStream p_312120_, Path p_310124_) static Path
downloadFile
(Path p_312337_, URL p_309490_, Map<String, String> p_311545_, com.google.common.hash.HashFunction p_312368_, com.google.common.hash.HashCode p_309569_, int p_312993_, Proxy p_311636_, HttpUtil.DownloadProgressListener p_310347_) static int
private static com.google.common.hash.HashCode
static boolean
isPortAvailable
(int p_259872_) private static void
updateModificationTime
(Path p_311353_)
-
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_310985_, com.google.common.hash.HashFunction p_312320_) throws IOException - Throws:
IOException
-
checkExistingFile
private static boolean checkExistingFile(Path p_309713_, com.google.common.hash.HashFunction p_311423_, com.google.common.hash.HashCode p_312149_) throws IOException - Throws:
IOException
-
cachedFilePath
-
downloadAndHash
private static com.google.common.hash.HashCode downloadAndHash(com.google.common.hash.HashFunction p_312168_, int p_311506_, HttpUtil.DownloadProgressListener p_311732_, InputStream p_312120_, Path p_310124_) throws IOException - Throws:
IOException
-
getAvailablePort
public static int getAvailablePort() -
isPortAvailable
public static boolean isPortAvailable(int p_259872_)
-