Class JarResource

  • All Implemented Interfaces:
    Resource

    public class JarResource
    extends Object
    implements Resource
    The default JarResource.
    Author:
    Manfred Riem (mriem@manorrock.com)
    • Constructor Detail

      • JarResource

        public JarResource()
        Constructor.
      • JarResource

        public JarResource​(File jarFile)
        Constructor.
        Parameters:
        jarFile - the JAR file.
    • Method Detail

      • getResource

        public URL getResource​(String location)
        Description copied from interface: Resource
        Get the resource.
        Specified by:
        getResource in interface Resource
        Parameters:
        location - the location.
        Returns:
        the URL.
      • getJarFile

        public File getJarFile()
        Get the JAR file.
        Returns:
        the JAR file.
      • setJarFile

        public void setJarFile​(File jarFile)
        Set the JAR file.
        Parameters:
        jarFile - the JAR file.