Class JarFileSite

All Implemented Interfaces:
RMJSONArchiver.GetKeys, RMPropertyChanger, PropertyChangeListener, Cloneable, EventListener

public class JarFileSite extends ZipFileSite
A WebSite subclass for Jar files.
  • Constructor Details

    • JarFileSite

      public JarFileSite()
  • Method Details

    • setURL

      protected void setURL(WebURL aUrl)
      Override to turn on file trimming from system jars.
      Overrides:
      setURL in class WebSite
    • loadArchive

      protected void loadArchive()
      Override to LoadFiles if Zip URL is really just a local (bin) directory.
      Overrides:
      loadArchive in class ZipFileSite
    • createZipFile

      protected ZipFile createZipFile() throws Exception
      Override to do weird (Jar)URLConnection thing if URL not local.
      Overrides:
      createZipFile in class ZipFileSite
      Throws:
      Exception
    • addZipEntry

      protected void addZipEntry(ZipEntry anEntry)
      Override to ignore certain Jar paths.
      Overrides:
      addZipEntry in class ZipFileSite
    • isInterestingPath

      protected boolean isInterestingPath(String aPath)
      Adds an entry (override to ignore).
    • loadFiles

      protected void loadFiles(String aPath, File aFile)
      Loads this JarFileSite from files (starting with root and recursing).
    • createFileImpl

      protected JarFileSite.JarDataFile createFileImpl(String aPath, boolean isDirectory)
      Override to return ZipDataFile.
      Overrides:
      createFileImpl in class ZipFileSite
    • getFileBytesImpl

      protected byte[] getFileBytesImpl(WebFile aFile) throws Exception
      Returns file bytes.
      Overrides:
      getFileBytesImpl in class ZipFileSite
      Throws:
      Exception