Class XJarURLConnection


public class XJarURLConnection extends AbstractJarURLConnection
Extends the JarURLConnection to handle XJarFile instead of JarFile's.
Author:
Christopher Mindus
  • Constructor Details

  • Method Details

    • getJarFile

      public IJarFile getJarFile() throws IOException
      Gets the IJarFile.
      Specified by:
      getJarFile in class AbstractJarURLConnection
      Returns:
      The IJarFile instance.
      Throws:
      IOException - if an IOException occurs while trying to connect to the JAR file for this connection.
      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.