Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 316 for SetBytes (0.05 sec)

  1. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Write initial content
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(initialContent.getBytes("UTF-8"));
            }
    
            // Overwrite with new content
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(newContent.getBytes("UTF-8"));
            }
    
            // Verify new content
            try (InputStream in = file.getInputStream()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

              } else {
                int codePoint = Character.codePointAt(input, i);
                if (codePoint == c) {
                  // fall back to JDK getBytes instead of trying to handle invalid surrogates ourselves
                  putBytes(input.subSequence(i, utf16Length).toString().getBytes(charset));
                  return this;
                }
                i++;
                update(4, codePointToFourUtf8Bytes(codePoint));
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/Type2Message.java

                if (targetName != null && targetName.length() != 0) {
                    targetBytes = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ? targetName.getBytes(UNI_ENCODING)
                            : targetName.toUpperCase().getBytes(getOEMEncoding());
                    size += targetBytes.length;
                } else {
                    flags &= 0xffffffff ^ NTLMSSP_REQUEST_TARGET;
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            leaseContext = new LeaseV1CreateContextRequest(testKey, testState);
        }
    
        @Test
        @DisplayName("Should have correct context name")
        void testContextName() {
            assertArrayEquals("RqLs".getBytes(), leaseContext.getName());
            assertEquals("RqLs", LeaseV1CreateContextRequest.CONTEXT_NAME);
        }
    
        @Test
        @DisplayName("Should initialize with default values")
        void testDefaultConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java

            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getXml_empty() {
            final InputStream in = new ByteArrayInputStream("".getBytes());
            final String content = xmlExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertEquals("", content);
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

        }
    
        @Test
        public void testAsciiEncoding() throws Exception {
            String msg = "\u00A1\u00A2"; // same Unicode string
            byte[] asciiBytes = msg.getBytes(SmbConstants.DEFAULT_OEM_ENCODING);
            assertTrue(asciiBytes.length > 0, "ASCII encoding should produce bytes");
        }
    
        @Test
        public void testBufferCreation() throws UnsupportedEncodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                byte[] buffer = "Test\0Other".getBytes();
    
                assertEquals(4, testBlock.readStringLength(buffer, 0, 10));
            }
    
            @Test
            @DisplayName("Test read string length without termination throws exception")
            void testReadStringLengthNoTermination() {
                byte[] buffer = "TestTest".getBytes();
    
                assertThrows(RuntimeCIFSException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        void testReadSecurityBuffer() {
            // Test readSecurityBuffer
            byte[] data = new byte[20];
            byte[] content = "Hello".getBytes();
    
            // Simulate a security buffer structure: length (2 bytes), length (2 bytes), offset (4 bytes)
            // Length = 5, Offset = 8
            ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

                        parseTokenPage(tokenPattern, responseParams, entity);
                    } else {
                        String content;
                        try {
                            content = new String(InputStreamUtil.getBytes(entity.getContent()), Constants.UTF_8_CHARSET);
                        } catch (final IOException e) {
                            content = e.getMessage();
                        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.3K bytes
    - Viewed (1)
  10. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          @Override
          public CharSource createSource(String string) throws IOException {
            return factory.createSource(string.getBytes(UTF_8)).asCharSource(UTF_8);
          }
    
          @Override
          public String getExpected(String data) {
            return new String(factory.getExpected(data.getBytes(UTF_8)), UTF_8);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top