Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 717 for encoded (0.05 sec)

  1. src/main/java/org/codelibs/core/misc/Base64Util.java

                DECODE_TABLE[ENCODE_TABLE[i]] = (byte) i;
            }
        }
    
        /**
         * Encodes data in Base64.
         *
         * @param inData
         *            The data to encode
         * @return The encoded data
         */
        public static String encode(final byte[] inData) {
            if (ArrayUtil.isEmpty(inData)) {
                return "";
            }
            final int mod = inData.length % 3;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                    }
                    try {
                        final String encoded = serializeParameters(parameters);
                        if (encoded.length() > fessConfig.getCookieSearchParameterMaxLengthAsInteger()) {
                            logger.warn("Encoded search parameters exceed the maximum cookie length: {} > {}. Skipping cookie storage.",
                                    encoded.length(), fessConfig.getCookieSearchParameterMaxLengthAsInteger());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/av/AvPairs.java

            remove(pairs, rep.getType());
            pairs.add(rep);
        }
    
        /**
         * Encodes a list of AV pairs into byte array format
         *
         * @param pairs the list of AV pairs to encode
         * @return encoded avpairs
         */
        public static byte[] encode(final List<AvPair> pairs) {
            int size = 0;
            for (final AvPair p : pairs) {
                size += 4 + p.getRaw().length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

        /**
         * When lastWriteTime is zero the encoded unsigned time must be all 1s.
         */
        @Test
        @DisplayName("edge: writeParameterWordsWireFormat with lastWriteTime=0")
        void testWriteParameterWordsZeroUTime() {
            SmbComClose close = new SmbComClose(42, 0L);
            byte[] buffer = new byte[6];
            close.writeParameterWordsWireFormat(buffer, 0);
            // first two bytes encode fid 42
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                byte[] buffer = new byte[EXPECTED_SIZE * 3];
    
                // When
                int offset1 = chunk1.encode(buffer, 0);
                int offset2 = chunk2.encode(buffer, offset1);
                int offset3 = chunk3.encode(buffer, offset1 + offset2);
    
                // Then
                assertEquals(EXPECTED_SIZE, offset1);
                assertEquals(EXPECTED_SIZE, offset2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

            }
        }
    
        /**
         * Decodes a similar document hash from its compressed and encoded form.
         * Reverses the encoding process applied by encodeSimilarDocHash.
         *
         * @param hash the encoded hash string to decode
         * @return the decoded hash string, or the original hash if decoding fails
         */
        public String decodeSimilarDocHash(final String hash) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NameTest.java

            // Should encode all 15 characters
            assertTrue(length >= 34);
            assertEquals(0x20, dst[0]);
        }
    
        @Test
        void readWireFormat_withTrailingSpaces_shouldTrimCorrectly() {
            // Prepare encoded data for "TEST    " (with trailing spaces)
            byte[] src = new byte[100];
            src[0] = 0x20;
    
            // Encode "TEST" correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, mockChunk1, mockChunk2);
                byte[] buffer = new byte[200];
    
                // When
                copy.encode(buffer, 0);
    
                // Then
                verify(mockChunk1, times(1)).encode(eq(buffer), eq(HEADER_SIZE));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

                return null;
            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        /**
         * Encodes a file path using Base64 URL-safe encoding.
         *
         * @param path the file path to encode
         * @return the Base64 encoded path
         */
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt

    /**
     * The first two bytes of each value is a header that includes its tag (field ID) and length.
     */
    internal data class DerHeader(
      /**
       * Namespace of the tag.
       *
       * This value is encoded in bits 7 and 8 of the first byte of each value.
       *
       * ```
       * 0b00xxxxxx Universal
       * 0b01xxxxxx Application
       * 0b10xxxxxx Context-Specific
       * 0b11xxxxxx Private
       * ```
       */
      var tagClass: Int,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top