- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for InputStream (0.04 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java
// Custom InputStream implementation final InputStream customStream = new InputStream() { @Override public int read() { return -1; } }; extractor.testValidateInputStream(customStream); } /** * Test exception message format for null input stream. */Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TextExtractorEnhancedTest.java
assertEquals("The inputstream is null.", e.getMessage()); } } /** * Test that extraction error includes encoding information in the error message. */ public void test_getText_extractionError_includesEncodingInMessage() { // Create a stream that will cause an error during reading final InputStream errorStream = new InputStream() { @Override
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/FilenameExtractorEnhancedTest.java
} catch (final CrawlerSystemException e) { assertEquals("The inputstream is null.", e.getMessage()); } } /** * Test extraction with filename containing special characters. */ public void test_getText_withSpecialCharactersInFilename() { final InputStream in = new ByteArrayInputStream(new byte[0]); final Map<String, String> params = new HashMap<>();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java
/** * Constructs a new IgnoreCloseInputStream that wraps the specified input stream. * * @param inputStream the input stream to wrap */ public IgnoreCloseInputStream(final InputStream inputStream) { this.inputStream = inputStream; } /** * Overrides the close method to ignore the close operation. * The underlying input stream will not be closed. *Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
} } /** * Test that try-with-resources handles null InputStream correctly. * Verifies that null InputStream doesn't cause NullPointerException during close. */ @Test public void testTryWithResources_nullInputStreamSafety() { // This test demonstrates that try-with-resources handles null safely try (InputStream is = null) { if (is == null) {Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 9.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.crawler.helper; import java.io.InputStream; import org.codelibs.core.io.CloseableUtil; import org.codelibs.fess.crawler.container.StandardCrawlerContainer; import org.codelibs.fess.crawler.entity.RobotsTxt; import org.dbflute.utflute.core.PlainTestCase;
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 20.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java
} } /** * Helper method to create a trackable input stream that records when it's closed. */ private InputStream createTrackableInputStream(final InputStream originalStream, final AtomicBoolean closedFlag) { return new InputStream() { @Override public int read() throws IOException { return originalStream.read(); }Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 10.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java
package org.codelibs.fess.crawler.processor.impl; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.when; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.codelibs.core.exception.IORuntimeException; import org.codelibs.fess.crawler.container.CrawlerContainer;
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 12K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractorTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.crawler.extractor.impl; import java.io.InputStream; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.io.ResourceUtil;
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
* try (ContentCache cache = new ContentCache(data)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * * // File-based caching * File file = new File("example.txt"); * try (ContentCache cache = new ContentCache(file)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * } * </pre> * */
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 4.1K bytes - Viewed (0)