Class PrefixJarResource

  • All Implemented Interfaces:
    Resource

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

      • PrefixJarResource

        public PrefixJarResource()
        Constructor.
      • PrefixJarResource

        public PrefixJarResource​(JarFile jarFile,
                                 String prefix)
        Constructor.
        Parameters:
        jarFile - the JAR file.
        prefix - the prefix.
    • 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 JarFile getJarFile()
        Get the JAR file.
        Returns:
        the JAR file.
      • getPrefix

        public String getPrefix()
        Get the prefix.
        Returns:
        the prefix.
      • setJarFile

        public void setJarFile​(JarFile jarFile)
        Set the JAR file.
        Parameters:
        jarFile - the JAR file.
      • setPrefix

        public void setPrefix​(String prefix)
        Set the prefix.
        Parameters:
        prefix - the prefix.