- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for ResourceHandler (0.11 sec)
-
src/main/java/org/codelibs/core/io/ResourceHandler.java
*/ package org.codelibs.core.io; import java.io.InputStream; /** * リソースを処理するハンドラのインターフェースです。 * * @author taedium */ public interface ResourceHandler { /** * リソースを処理します。 * * @param path * パス * @param is * リソースを読み込むための{@link InputStream} */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
final int pos = path.lastIndexOf("/"); final String baseDirectory = path.substring(0, pos); ResourceTraversalUtil.forEach(rootDir, baseDirectory, (ResourceHandler) (path1, is) -> { try { if (count < 10) { System.out.println(path1); } assertThat(path1, is(notNullValue()));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6K bytes - Viewed (0) -
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; /** * リソースをトラバースするためのクラスです。 * * @author taedium * @see ResourceHandler * @see TraversalUtil */ public abstract class ResourceTraversalUtil { /** * ファイルシステムに含まれるリソースをトラバースします。 * * @param rootDir * ルートディレクトリ。{@literal null}であってはいけません
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
} public CrawlerWebServer(final int port, final File docRoot) { this.port = port; this.docRoot = docRoot; server = new Server(port); final ResourceHandler resource_handler = new ResourceHandler(); resource_handler.setWelcomeFiles(new String[] { "index.html" }); resource_handler.setResourceBase(docRoot.getAbsolutePath());
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.3K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
tempDocRoot = true; } public CrawlerWebServer(final int port, final File docRoot) { this.docRoot = docRoot; server = new Server(port); final ResourceHandler resource_handler = new ResourceHandler(); resource_handler.setWelcomeFiles(new String[] { "index.html" }); resource_handler.setResourceBase(docRoot.getAbsolutePath());
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 5K bytes - Viewed (0) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
} public CrawlerWebServer(final int port, final File docRoot) { this.port = port; this.docRoot = docRoot; server = new Server(port); final ResourceHandler resource_handler = new ResourceHandler(); resource_handler.setWelcomeFiles(new String[] { "index.html" }); resource_handler.setResourceBase(docRoot.getAbsolutePath());
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/TraverserUtilTest.java
assertThat(traverser, is(notNullValue())); assertThat(traverser instanceof FileSystemTraverser, is(true)); final List<String> list = new ArrayList<String>(); traverser.forEach((ResourceHandler) (path, is) -> list.add(path)); assertThat(list.size(), is(1)); assertThat(list.get(0).endsWith("DummyTest.class"), is(true)); } /** * @throws Exception */ @Test
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/Traverser.java
/** * このインスタンスが扱うリソースを探して * {@link ResourceHandler#processResource(String, java.io.InputStream) ハンドラ} * をコールバックします。 * <p> * インスタンス構築時にルートディレクトリが指定されている場合は、 ルートディレクトリ以下のリソースのみが対象となります。 * </p> * * @param handler * リソースを処理するハンドラ */ void forEach(ResourceHandler handler); /** * リソースの後処理を行います。 */ void close();
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.6K bytes - Viewed (0) -
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 Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 19.5K bytes - Viewed (0)