Class JarFileSite

    • Constructor Detail

      • JarFileSite

        public JarFileSite()
    • Method Detail

      • 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 java.util.zip.ZipFile createZipFile()
                                               throws java.lang.Exception
        Override to do weird (Jar)URLConnection thing if URL not local.
        Overrides:
        createZipFile in class ZipFileSite
        Throws:
        java.lang.Exception
      • addZipEntry

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

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

        protected void loadFiles​(java.lang.String aPath,
                                 java.io.File aFile)
        Loads this JarFileSite from files (starting with root and recursing).
      • getFileBytesImpl

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