Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 406 for getByte (0.04 sec)

  1. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            private List<String> ipAddresses;
    
            /**
             * Get the notification message type
             *
             * @return message type
             */
            public int getType() {
                return type;
            }
    
            /**
             * Sets the notification message type.
             *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                    try (GZIPOutputStream gos = new GZIPOutputStream(baos)) {
                        gos.write(hash.getBytes(Constants.UTF_8));
                    }
                    return SIMILAR_DOC_HASH_PREFIX + Base64.getUrlEncoder().withoutPadding().encodeToString(baos.toByteArray());
                } catch (final IOException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NetworkExplorerTest.java

            initializeNetworkExplorer(false, "jCIFS");
    
            // Setup mock file with minimal required behavior
            String content = "File content for testing";
            byte[] contentBytes = content.getBytes();
    
            when(smbFile.length()).thenReturn((long) contentBytes.length);
            when(smbFile.getInputStream()).thenReturn(new ByteArrayInputStream(contentBytes));
    
            // Use spy to avoid actual SMB operations
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            byte[] data = new byte[100];
    
            digest.sign(data, 0, data.length, mockRequest, mockResponse);
    
            // Check if BSRSPYL signature is written
            byte[] expectedSignature = "BSRSPYL ".getBytes();
            byte[] actualSignature = new byte[8];
            System.arraycopy(data, SmbConstants.SIGNATURE_OFFSET, actualSignature, 0, 8);
            assertArrayEquals(expectedSignature, actualSignature);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/LmhostsTest.java

                    Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
                        // Mock the read method to return simple content
                        byte[] includeContent = "192.168.1.200 INCLUDEHOST\n".getBytes();
                        int[] index = { 0 };
                        when(mock.read()).thenAnswer(inv -> {
                            if (index[0] < includeContent.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            // Create temporary properties file
            File propFile = File.createTempFile("test", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "test.property=value".getBytes());
    
            Crawler.Options options = new Crawler.Options();
            options.sessionId = "test-session";
            options.propertiesPath = propFile.getAbsolutePath();
    
            // Verify the properties path is set
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

            super.setUp();
            final File propFile = File.createTempFile("system", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes());
            ComponentUtil.register(new DynamicProperties(propFile), "systemProperties");
            crawlingConfigHelper = new CrawlingConfigHelper();
            crawlingConfigHelper.init();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeConnection.java

                        }
                    }
                }
            }
    
            final String hostName = loc.getServerWithDfs();
            final String path = loc.getType() == SmbConstants.TYPE_SHARE || loc.getUNCPath() == null || "\\".equals(loc.getUNCPath()) ? null
                    : loc.getUNCPath();
            String share = loc.getShare();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

         */
        public static String base64(final String value) {
            if (value == null) {
                return StringUtil.EMPTY;
            }
            return Base64.getUrlEncoder().encodeToString(value.getBytes(Constants.CHARSET_UTF_8));
        }
    
        /**
         * Checks if a file exists at the specified path within the servlet context.
         *
         * @param path the file path relative to the servlet context
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
Back to top