- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for setBytes (1.27 sec)
-
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
final byte[] data1 = "abc".getBytes(); assertEquals("YWJj", Base64Util.encode(data1)); // Test case 2: Single padding final byte[] data2 = "abcd".getBytes(); assertEquals("YWJjZA==", Base64Util.encode(data2)); // Test case 3: Double padding final byte[] data3 = "abcde".getBytes(); assertEquals("YWJjZGU=", Base64Util.encode(data3));
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TextExtractorEnhancedTest.java
*/ public void test_getText_withDefaultEncoding() { final String testContent = "Test content テスト 日本語"; final InputStream in = new ByteArrayInputStream(testContent.getBytes()); final ExtractData result = textExtractor.getText(in, null); assertNotNull(result); assertNotNull(result.getContent()); assertTrue(result.getContent().contains("Test content"));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/AbstractExtractorTest.java
*/ public void test_validateInputStream_consistentAcrossMultipleCalls() { final InputStream in1 = new ByteArrayInputStream("data1".getBytes()); final InputStream in2 = new ByteArrayInputStream("data2".getBytes()); // First call extractor.testValidateInputStream(in1); // Second call with different stream extractor.testValidateInputStream(in2);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/helper/SitemapsHelperTest.java
final byte[] bytes = "".getBytes(); final InputStream in = new ByteArrayInputStream(bytes); try { sitemapsHelper.parse(in); fail(); } catch (final CrawlingAccessException e) { // NOP } } public void test_parseXmlSitemaps_invalid2() { final byte[] bytes = "test".getBytes();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 36.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java
*/ public class IgnoreCloseInputStreamTest extends PlainTestCase { public void test_close_isIgnored() throws IOException { // Test that close() is ignored byte[] data = "Test data".getBytes(); ByteArrayInputStream underlyingStream = new ByteArrayInputStream(data); IgnoreCloseInputStream stream = new IgnoreCloseInputStream(underlyingStream); // Read some dataRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 6.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java
.stream(new ByteArrayInputStream("file1".getBytes()), 5, -1) .contentType("application/octet-stream") .build()); minioClient.putObject(PutObjectArgs.builder() .bucket(bucketName) .object("dir1/file2.txt") .stream(new ByteArrayInputStream("file2".getBytes()), 5, -1) .contentType("application/octet-stream")
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 20.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java
// Create a temporary file with test data File tempFile = File.createTempFile("test-", ".tmp"); try (FileOutputStream fos = new FileOutputStream(tempFile)) { fos.write("Test data".getBytes()); } // Read from TemporaryFileInputStream try (TemporaryFileInputStream stream = new TemporaryFileInputStream(tempFile)) { assertEquals('T', stream.read());Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 7.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/s3/S3ClientTest.java
.stream(new ByteArrayInputStream("file1".getBytes()), 5, -1) .contentType("application/octet-stream") .build()); minioClient.putObject(PutObjectArgs.builder() .bucket(bucketName) .object("dir1/file2.txt") .stream(new ByteArrayInputStream("file2".getBytes()), 5, -1) .contentType("application/octet-stream")
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 07:57:44 UTC 2025 - 20.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/XmlUtilTest.java
AccessResultDataImpl<?> accessResultData = new AccessResultDataImpl<>(); accessResultData.setData(xml.getBytes("UTF-8")); accessResultData.setEncoding("UTF-8"); Map<String, Object> dataMap = XmlUtil.getDataMap(accessResultData); assertNotNull(dataMap);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ArchiveExtractorErrorHandlingTest.java
zos.putNextEntry(entry1); zos.write("Valid content テスト".getBytes("UTF-8")); zos.closeEntry(); // Add another valid entry final ZipEntry entry2 = new ZipEntry("another.txt"); zos.putNextEntry(entry2); zos.write("Another valid content".getBytes("UTF-8")); zos.closeEntry(); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 12.6K bytes - Viewed (0)