static class ModJarURLHandler.ModJarURLConnection
extends java.net.URLConnection
Modifier and Type | Field and Description |
---|---|
private java.util.Optional<java.util.jar.Manifest> |
manifest |
private java.lang.String |
modid |
private java.lang.String |
modpath |
private java.nio.file.Path |
resource |
Constructor and Description |
---|
ModJarURLConnection(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
long |
getContentLengthLong() |
java.io.InputStream |
getInputStream() |
java.util.Optional<java.util.jar.Manifest> |
getManifest() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
private java.nio.file.Path resource
private java.lang.String modpath
private java.lang.String modid
private java.util.Optional<java.util.jar.Manifest> manifest
public void connect()
connect
in class java.net.URLConnection
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public long getContentLengthLong()
getContentLengthLong
in class java.net.URLConnection
public java.util.Optional<java.util.jar.Manifest> getManifest()