Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ResourceHandler (0.08 sec)

  1. src/main/java/org/codelibs/core/io/ResourceHandler.java

     */
    package org.codelibs.core.io;
    
    import java.io.InputStream;
    
    /**
     * Interface for handlers that process resources.
     *
     * @author taedium
     */
    public interface ResourceHandler {
    
        /**
         * Processes a resource.
         *
         * @param path the path
         * @param is the {@link InputStream} to read the resource
         */
        void processResource(String path, InputStream is);
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 997 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

    import java.util.zip.ZipInputStream;
    
    import org.codelibs.core.jar.JarFileUtil;
    import org.codelibs.core.zip.ZipInputStreamUtil;
    
    /**
     * Class for traversing resources.
     *
     * @author taedium
     * @see ResourceHandler
     * @see TraversalUtil
     */
    public abstract class ResourceTraversalUtil {
    
        /**
         * Do not instantiate.
         */
        protected ResourceTraversalUtil() {
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/TraversalUtil.java

                        handler.processClass(packageName, shortClassName);
                    }
                });
            }
    
            @Override
            public void forEach(final ResourceHandler handler) {
                ResourceTraversalUtil.forEach(jarFile, (ResourceHandler) (path, is) -> {
                    if (rootDir == null || path.startsWith(rootDir)) {
                        handler.processResource(path, is);
                    }
                });
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/Traverser.java

         * If a root directory is specified at instance construction, only resources under the root directory are targeted.
         * </p>
         *
         * @param handler the handler to process resources
         */
        void forEach(ResourceHandler handler);
    
        /**
         * Performs post-processing of resources.
         */
        void close();
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top