Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 316 for SetBytes (0.04 sec)

  1. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

            String testData =
                    "This is test data for compression that should be long enough to actually compress effectively when using gzip compression algorithm";
            byte[] originalBytes = testData.getBytes();
    
            byte[] compressed = searchHelper.gzipCompress(originalBytes);
            byte[] decompressed = searchHelper.gzipDecompress(compressed);
    
            assertEquals(testData, new String(decompressed));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/Utf8Test.java

          }
          boolean isRoundTrippable = Utf8.isWellFormed(bytes);
          assertEquals(isRoundTrippable, Utf8.isWellFormed(bytes, 0, numBytes));
          String s = new String(bytes, UTF_8);
          byte[] bytesReencoded = s.getBytes(UTF_8);
          boolean bytesEqual = Arrays.equals(bytes, bytesReencoded);
    
          if (bytesEqual != isRoundTrippable) {
            fail();
          }
          if (isRoundTrippable) {
            countRoundTripped++;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

                assertTrue(recvBuffer.getSize() > 0, "Receive buffer should have positive size");
    
                // Test data preparation
                byte[] testData = "Test RDMA data transfer".getBytes();
                sendBuffer.getBuffer().put(testData);
                sendBuffer.getBuffer().flip();
                assertEquals(testData.length, sendBuffer.getBuffer().remaining(), "Buffer should contain test data");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

                            + "\"}}\n" + hit.getSourceAsString() + "\n";
                    try {
                        zos.write(data.getBytes(Constants.CHARSET_UTF_8));
                    } catch (final IOException e) {
                        logger.warn("Failed to access /{}/{}.", index, hit.getId(), e);
                    }
                    return true;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/HashingTest.java

        }
      }
    
      public void testNullPointers() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(byte[].class, "secret key".getBytes(UTF_8))
                .setDefault(HashCode.class, HashCode.fromLong(0));
        tester.testAllPublicStaticMethods(Hashing.class);
      }
    
      public void testSeedlessHashFunctionEquals() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            dstIndex += 4;
            SMBUtil.writeInt4(this.createOptions, dst, dstIndex);
            dstIndex += 4;
    
            final int nameOffsetOffset = dstIndex;
            final byte[] nameBytes = this.name.getBytes(StandardCharsets.UTF_16LE);
            SMBUtil.writeInt2(nameBytes.length, dst, dstIndex + 2);
            dstIndex += 4;
    
            final int createContextOffsetOffset = dstIndex;
            dstIndex += 4; // createContextOffset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                                try (InputStream contentStream = new BufferedInputStream(new SmbFileInputStream(file))) {
                                    responseData.setResponseBody(InputStreamUtil.getBytes(contentStream));
                                } catch (final Exception e) {
                                    logger.warn("I/O Exception.", e);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 23K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            Encdec.enc_doublebe(v, this.tmp, 0);
            write(this.tmp, 0, 8);
        }
    
        @Override
        public final void writeBytes(final String s) throws SmbException {
            final byte[] b = s.getBytes();
            write(b, 0, b.length);
        }
    
        @Override
        public final void writeChars(final String s) throws SmbException {
            final int clen = s.length();
            final int blen = 2 * clen;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      private static Manifest manifest(String content) throws IOException {
        InputStream in = new ByteArrayInputStream(content.getBytes(US_ASCII));
        Manifest manifest = new Manifest();
        manifest.read(in);
        return manifest;
      }
    
      private static File fullpath(String path) {
        return new File(new File(path).toURI());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 23K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/OsddHelperTest.java

                              <InputEncoding>UTF-8</InputEncoding>
                              <OutputEncoding>UTF-8</OutputEncoding>
                            </OpenSearchDescription>
                            """, new String(InputStreamUtil.getBytes(ins)));
                }
    
                @Override
                public OutputStream stream() {
                    return null;
                }
            });
        }
    
        public void test_init_osddpath_null() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top