- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 220 for getData (0.1 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java
final AccessResultDataImpl accessResultData = new AccessResultDataImpl(); accessResultData.setTransformerName("textTransformer"); accessResultData.setData("xyz".getBytes()); final Object obj = textTransformer.getData(accessResultData); assertNotNull(obj); assertTrue(obj instanceof String); assertEquals("xyz", obj.toString()); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 4.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformer.java
} } /* * (non-Javadoc) * * @see * org.codelibs.fess.crawler.transformer.Transformer#getData(org.codelibs.fess.crawler.entity * .AccessResultData) */ @Override public Object getData(final AccessResultData<?> accessResultData) { // check transformer name if (!getName().equals(accessResultData.getTransformerName())) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java
return resultData; } /* * (non-Javadoc) * * @see * org.codelibs.fess.crawler.transformer.Transformer#getData(org.codelibs.fess.crawler.entity * .AccessResultData) */ @Override public Object getData(final AccessResultData<?> accessResultData) { // check transformer name if (!getName().equals(accessResultData.getTransformerName())) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 5.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformerTest.java
final AccessResultDataImpl accessResultData = new AccessResultDataImpl(); accessResultData.setTransformerName("binaryTransformer"); accessResultData.setData("xyz".getBytes()); final Object obj = binaryTransformer.getData(accessResultData); assertNotNull(obj); assertTrue(obj instanceof InputStream); assertEquals("xyz", new String(IOUtils.toByteArray((InputStream) obj))); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 3.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java
final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl(); accessResultDataImpl.setData(value.getBytes(Constants.UTF_8)); accessResultDataImpl.setEncoding(Constants.UTF_8); accessResultDataImpl.setTransformerName("xpathTransformer"); final Object obj = xpathTransformer.getData(accessResultDataImpl); assertEquals(value, obj); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 12.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java
final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl(); accessResultDataImpl.setData(value.getBytes()); accessResultDataImpl.setEncoding(Constants.UTF_8); accessResultDataImpl.setTransformerName("htmlTransformer"); final Object obj = htmlTransformer.getData(accessResultDataImpl); assertEquals(value, obj); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java
final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl(); accessResultDataImpl.setData(value.getBytes(Constants.UTF_8)); accessResultDataImpl.setEncoding(Constants.UTF_8); accessResultDataImpl.setTransformerName("xmlTransformer"); final Object obj = xmlTransformer.getData(accessResultDataImpl); assertEquals(value, obj); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java
final ResultData resultData = fileTransformer.transform(responseData); assertEquals("http_CLN_/www.example.com/submit_QUEST_a=1_AMP_b=2", new String(resultData.getData(), "UTF-8")); final File file = new File(fileTransformer.baseDir, new String(resultData.getData(), "UTF-8")); assertEquals("xyz", new String(FileUtil.readBytes(file))); } public void test_createFile() throws Exception {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 7.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java
if (out.isInMemory()) { return new ByteArrayInputStream(out.getData()); } return new FileInputStream(out.getFile()); } protected long getContentLength(final DeferredFileOutputStream out) throws IOException { if (out.isInMemory()) { return out.getData().length; } return out.getFile().length(); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 6.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java
} try { resultData.setData(path.getBytes(charsetName)); } catch (final UnsupportedEncodingException e) { if (logger.isInfoEnabled()) { logger.info("Invalid charsetName: " + charsetName + ". Changed to " + Constants.UTF_8, e); } charsetName = Constants.UTF_8_CHARSET.name(); resultData.setData(path.getBytes(Constants.UTF_8_CHARSET)); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 7.8K bytes - Viewed (0)