- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 43 for Byte (0.02 sec)
-
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
final byte[] utf8Decoded = Base64Util.decode(utf8Encoded); assertEquals("Round trip should preserve UTF-8 data", utf8Text, new String(utf8Decoded, "UTF-8")); // Test with binary data final byte[] binaryData = new byte[] { 0, 1, 2, 3, 127, (byte) 128, (byte) 255 }; final String binaryEncoded = Base64Util.encode(binaryData);
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/FilenameExtractorEnhancedTest.java
final ExtractData result = filenameExtractor.getText(in, null); assertNotNull(result); assertEquals("", result.getContent()); } /** * Test extraction with empty parameters map. */ public void test_getText_withEmptyParams() { final InputStream in = new ByteArrayInputStream(new byte[0]);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
// Create a large byte array (1MB) byte[] data = new byte[1024 * 1024]; for (int i = 0; i < data.length; i++) { data[i] = (byte) (i % 256); } ContentCache cache = new ContentCache(data); try (InputStream stream = cache.getInputStream()) { assertNotNull(stream); byte[] buffer = new byte[data.length];
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
assertEquals("3", "2", b[1]); } /** * @throws Exception */ public void testObjectAndBinary() throws Exception { final String o = "hoge"; final byte[] binary = SerializeUtil.fromObjectToBinary(o); assertEquals(o, SerializeUtil.fromBinaryToObject(binary)); } /** * Test default filter allows common safe classes * * @throws Exception
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
// Create a file larger than MAX_BUF_SIZE (10MB) // Write 11MB of data try (FileOutputStream fos = new FileOutputStream(largeFile)) { final byte[] chunk = new byte[1024 * 1024]; // 1MB for (int i = 0; i < 11; i++) { // Write 11MB fos.write(chunk); } } try { FileUtil.readBytes(largeFile);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java
// Test that read(byte[]) delegates to underlying stream byte[] data = "Hello World".getBytes(); InputStream underlyingStream = new ByteArrayInputStream(data); IgnoreCloseInputStream stream = new IgnoreCloseInputStream(underlyingStream); byte[] buffer = new byte[5]; int bytesRead = stream.read(buffer); assertEquals(5, bytesRead);
Registered: 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/util/ResponseDataUtilTest.java
} } public void test_createResponseBodyFile_binaryContent() throws Exception { // Test with binary content byte[] binaryData = new byte[] { 0x00, 0x01, 0x02, (byte) 0xFF, (byte) 0xFE, (byte) 0xFD }; ResponseData responseData = new ResponseData() { @Override public InputStream getResponseBody() {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
/** * Encrypts the given data. * * @param data * the data to encrypt * @return the encrypted data */ public byte[] encrypt(final byte[] data) { final Cipher cipher = pollEncryptoCipher(); byte[] encrypted; try { encrypted = cipher.doFinal(data); } catch (final IllegalBlockSizeException e) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
/** * A byte array that holds the cached content data. */ private final byte[] data; /** * The file that is used to cache the content. */ private final File file; /** * Constructs a ContentCache with the given byte array data. * * @param data the byte array containing the contentRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); try (InputStream stream = response.getContentAsStream()) { assertNotNull(stream); byte[] buffer = new byte[1024]; int bytesRead = stream.read(buffer);
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 12.5K bytes - Viewed (0)