Class ModJarURLHandler.ModJarURLConnection

  • Enclosing class:
    ModJarURLHandler

    static class ModJarURLHandler.ModJarURLConnection
    extends java.net.URLConnection
    • Field Summary

      Fields 
      Modifier and Type Field 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  
      • Fields inherited from class java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • Constructor Summary

      Constructors 
      Constructor Description
      ModJarURLConnection​(java.net.URL url)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect()  
      long getContentLengthLong()  
      java.io.InputStream getInputStream()  
      java.util.Optional<java.util.jar.Manifest> getManifest()  
      java.net.URL getURL()  
      • Methods inherited from class java.net.URLConnection

        addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • resource

        private java.nio.file.Path resource
      • modpath

        private java.lang.String modpath
      • modid

        private java.lang.String modid
      • manifest

        private java.util.Optional<java.util.jar.Manifest> manifest
    • Constructor Detail

      • ModJarURLConnection

        public ModJarURLConnection​(java.net.URL url)
    • Method Detail

      • connect

        public void connect()
        Specified by:
        connect in class java.net.URLConnection
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Overrides:
        getInputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getContentLengthLong

        public long getContentLengthLong()
        Overrides:
        getContentLengthLong in class java.net.URLConnection
      • getURL

        public java.net.URL getURL()
        Overrides:
        getURL in class java.net.URLConnection
      • getManifest

        public java.util.Optional<java.util.jar.Manifest> getManifest()