- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 47 for getResourceAsStream (0.26 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TextExtractorTest.java
textExtractor = container.getComponent("textExtractor"); } public void test_getText() { final InputStream in = ResourceUtil.getResourceAsStream("extractor/test.txt"); final String content = textExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content); assertTrue(content.contains("テスト"));
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/xml/DomUtilTest.java
*/ public void testToString() throws Exception { final DocumentBuilder builder = DocumentBuilderFactoryUtil.newDocumentBuilder(); final Document doc = DocumentBuilderUtil.parse(builder, ResourceUtil.getResourceAsStream("org/codelibs/core/xml/test1.xml")); final Element root = doc.getDocumentElement(); final String contents = DomUtil.toString(root); System.out.println(contents); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/MsExcelExtractorTest.java
msExcelExtractor = container.getComponent("msExcelExtractor"); } public void test_getText() { final InputStream in = ResourceUtil.getResourceAsStream("extractor/msoffice/test.xls"); final String content = msExcelExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/MsPowerPointExtractorTest.java
msPowerPointExtractor = container.getComponent("msPowerPointExtractor"); } public void test_getText() { final InputStream in = ResourceUtil.getResourceAsStream("extractor/msoffice/test.ppt"); final String content = msPowerPointExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java
final MimeTypeHelper mimeTypeHelper = container.getComponent("mimeTypeHelper"); if (path != null) { try (final InputStream is = ResourceUtil.getResourceAsStream(path)) { assertEquals(expect, mimeTypeHelper.getContentType(is, name)); } } else { assertEquals(expect, mimeTypeHelper.getContentType(null, name)); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 11.6K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/MsWordExtractorTest.java
msWordExtractor = container.getComponent("msWordExtractor"); } public void test_getText() { final InputStream in = ResourceUtil.getResourceAsStream("extractor/msoffice/test.doc"); final String content = msWordExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/net/MimeTypeUtil.java
* @return コンテントタイプ */ public static String guessContentType(final String path) { assertArgumentNotEmpty("path", path); final InputStream is = ResourceUtil.getResourceAsStream(path); try { final String mimetype = URLConnection.guessContentTypeFromStream(is); if (mimetype != null) { return mimetype; }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.8K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
class MavenModelVersionTest { private static Model model; @BeforeAll static void setup() throws Exception { try (InputStream is = MavenModelVersionTest.class.getResourceAsStream("/xml/pom.xml")) { model = new MavenStaxReader().read(is); } } @Test void testV4Model() { assertEquals("4.0.0", new MavenModelVersion().getModelVersion(model)); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java
final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/bbb.html"; final String s = URLConnection.guessContentTypeFromStream(ResourceUtil.getResourceAsStream(path)); assertNull(s); final String contentType = MimeTypeUtil.guessContentType(path); assertEquals("text/html", contentType); } /** * Test method for
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0)