Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 316 for SetBytes (0.35 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java

            // String data
            TestAccessResultData<String> stringData = new TestAccessResultData<>("string value".getBytes());
            assertEquals("string value", testTransformer.getData(stringData));
    
            // Integer data
            TestAccessResultData<Integer> intData = new TestAccessResultData<>("123".getBytes());
            assertEquals("123", testTransformer.getData(intData));
    
            // List data
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            // Simulate message exchange
            preauthService.updatePreauthHash(sessionId, "Message1".getBytes());
            preauthService.updatePreauthHash(sessionId, "Message2".getBytes());
    
            byte[] expectedHash = preauthService.getCurrentPreauthHash(sessionId);
    
            // Validation should pass with correct hash
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/HMACT64Test.java

    import org.junit.jupiter.api.Test;
    
    class HMACT64Test {
    
        private static final byte[] TEST_KEY = "testkey".getBytes();
        private static final byte[] LONG_TEST_KEY = new byte[80]; // Longer than 64 bytes
        private static final byte[] SHORT_TEST_KEY = "short".getBytes();
        private static final byte[] TEST_DATA = "testdata".getBytes();
        private static final byte[] EMPTY_DATA = new byte[0];
    
        static {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            setConverter(response, 0);
    
            // Set number of entries
            setNumEntries(response, 1);
    
            // Write share name (13 bytes, null padded)
            byte[] nameBytes = shareName.getBytes(StandardCharsets.US_ASCII);
            System.arraycopy(nameBytes, 0, buffer, bufferIndex, Math.min(nameBytes.length, 13));
            bufferIndex += 14;
    
            // Write type (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

            }
            File file;
            try {
                file = File.createTempFile("script", extention);
                file.deleteOnExit();
                FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes());
                return file;
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        private File createScriptTempFileStdout(final int sleep) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                zos.putNextEntry(viewEntry);
                zos.write("<html>test</html>".getBytes());
                zos.closeEntry();
    
                // Add CSS file
                ZipEntry cssEntry = new ZipEntry("css/style.css");
                zos.putNextEntry(cssEntry);
                zos.write("body { color: red; }".getBytes());
                zos.closeEntry();
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            // Verify replaceIfExists flag
            assertEquals(1, buffer[0]);
    
            // Verify file name length
            int nameLength = SMBUtil.readInt4(buffer, 16);
            assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength);
    
            // Verify file name
            byte[] nameBytes = new byte[nameLength];
            System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/Strings.java

         * @param encoding the character encoding to use
         * @return encoded byte array, or empty array if str is null
         */
        public static byte[] getBytes(final String str, final Charset encoding) {
            if (str == null) {
                return new byte[0];
            }
            return str.getBytes(encoding);
        }
    
        /**
         * Encodes a string into UTF-16LE (Unicode Little Endian) bytes.
         *
         * @param str the string to encode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. 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: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/curl/CurlResponseTest.java

        }
    
        @Test
        public void testContentCache() {
            CurlResponse response = new CurlResponse();
            byte[] data = "test content".getBytes();
            ContentCache cache = new ContentCache(data);
    
            response.setContentCache(cache);
    
            // ContentCache is not directly accessible, but we can test through content methods
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top