Package io.github.slimjar.util
Class Connections
java.lang.Object
io.github.slimjar.util.Connections
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull URLConnectioncreateDownloadConnection(@NotNull URL url) static @NotNull FilecreateTempFile(@NotNull String name) static @NotNull URLstatic @NotNull JarURLConnectionopenJarConnection(@NotNull URL url) static voidtryDisconnect(@NotNull URLConnection urlConnection)
-
Method Details
-
newURL
@NotNull public static @NotNull URL newURL(@NotNull @NotNull String url) throws MalformedURLException - Throws:
MalformedURLException
-
createDownloadConnection
@NotNull public static @NotNull URLConnection createDownloadConnection(@NotNull @NotNull URL url) throws IOException - Throws:
IOException
-
tryDisconnect
-
openJarConnection
@Contract(value="_ -> new", pure=true) @NotNull public static @NotNull JarURLConnection openJarConnection(@NotNull @NotNull URL url) throws ModuleExtractorException - Throws:
ModuleExtractorException
-
createTempFile
@Contract(value="_ -> new", pure=true) @NotNull public static @NotNull File createTempFile(@NotNull @NotNull String name) throws ModuleExtractorException - Throws:
ModuleExtractorException
-