Class MemoryJarURLConnection


public class MemoryJarURLConnection extends AbstractJarURLConnection
Extends the JarURLConnection to handle in-memory loaded MemoryJarFile instead of JarFile.
Author:
Christopher Mindus
  • Constructor Details

  • Method Details

    • getJarFile

      public IJarFile getJarFile()
      Gets the IJarFile.
      Specified by:
      getJarFile in class AbstractJarURLConnection
      Returns:
      The IJarFile instance.
      See Also:
    • connect

      public void connect() throws IOException
      Opens a communications link to the resource referenced by this URL, if such a connection has not already been established.

      If the connect method is called when the connection has already been opened (indicated by the connected field having the value true), the call is ignored.

      Specified by:
      connect in class URLConnection
      Throws:
      IOException - if an I/O error occurs while opening the connection.
    • getInputStream

      public InputStream getInputStream() throws IOException
      Returns an input stream that reads from this open connection.
      Overrides:
      getInputStream in class URLConnection
      Returns:
      an input stream that reads from this open connection.
      Throws:
      IOException - if an I/O error occurs while creating the input stream.