Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getJarFile (0.05 sec)

  1. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

            ThemeHelper mockThemeHelper = new ThemeHelper() {
                @Override
                protected Path getJarFile(Artifact artifact) {
                    return jarPath;
                }
            };
    
            Artifact artifact = new Artifact("fess-theme-test", "1.0.0");
            Path result = mockThemeHelper.getJarFile(artifact);
            assertEquals(jarPath, result);
        }
    
        public void test_getJarFile_notExists() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

            final URL classURL = ResourceUtil.getResource(classFilePath);
            final JarURLConnection con = (JarURLConnection) classURL.openConnection();
            ResourceTraversalUtil.forEach(con.getJarFile(), (ResourceHandler) (path, is) -> {
                try {
                    if (count < 10) {
                        System.out.println(path);
                    }
                    System.out.println(path);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

         *
         * @param artifact the theme artifact to install
         * @throws ThemeException if installation fails
         */
        public void install(final Artifact artifact) {
            final Path jarPath = getJarFile(artifact);
            final String themeName = getThemeName(artifact);
            if (logger.isDebugEnabled()) {
                logger.debug("Theme: {}", themeName);
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java

         *
         * @param conn
         *            {@link JarURLConnection}. Must not be {@literal null}.
         * @return {@link JarFile}
         */
        public static JarFile getJarFile(final JarURLConnection conn) {
            assertArgumentNotNull("conn", conn);
    
            try {
                return conn.getJarFile();
            } catch (final IOException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

            final URL classURL = ResourceUtil.getResource(classFilePath);
            final JarURLConnection con = (JarURLConnection) classURL.openConnection();
            ClassTraversalUtil.forEach(con.getJarFile(), (ClassHandler) (packageName, shortClassName) -> {
                if (count < 10) {
                    System.out.println(ClassUtil.concatName(packageName, shortClassName));
                }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/jar/JarFileUtil.java

            assertArgumentNotNull("jarUrl", jarUrl);
    
            final URLConnection con = URLUtil.openConnection(jarUrl);
            if (con instanceof JarURLConnection) {
                return JarURLConnectionUtil.getJarFile((JarURLConnection) con);
            }
            return create(new File(toJarFilePath(jarUrl)));
        }
    
        /**
         * Returns the path of the JAR file specified by the URL.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

                    } else if ("jar".equals(resource.getProtocol())) {
                        final JarURLConnection jarURLConnection = (JarURLConnection) resource.openConnection();
                        try (JarFile jarFile = jarURLConnection.getJarFile()) {
                            final Enumeration<JarEntry> entries = jarFile.entries();
                            while (entries.hasMoreElements()) {
                                final JarEntry entry = entries.nextElement();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top