Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 227 for decoded (0.03 sec)

  1. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded);
      }
    
      private static void testDecodes(BaseEncoding encoding, String encoded, String decoded) {
        assertThat(encoding.canDecode(encoded)).isTrue();
        assertThat(encoding.decode(encoded)).isEqualTo(decoded.getBytes(UTF_8));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/FacetResponseTest.java

            // Test that unicode strings are properly encoded/decoded
            String unicodeString = "日本語テスト";
            String encoded = BaseEncoding.base64().encode(unicodeString.getBytes(StandardCharsets.UTF_8));
            String decoded = new String(BaseEncoding.base64().decode(encoded), StandardCharsets.UTF_8);
    
            assertEquals(unicodeString, decoded);
        }
    
        public void test_special_characters_base64_encoding() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded);
      }
    
      private static void testDecodes(BaseEncoding encoding, String encoded, String decoded) {
        assertThat(encoding.canDecode(encoded)).isTrue();
        assertThat(encoding.decode(encoded)).isEqualTo(decoded.getBytes(UTF_8));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

          ).decodeBase64()!!
    
        val decoded = CertificateAdapters.privateKeyInfo.fromDer(privateKeyInfoByteString)
    
        assertThat(decoded.version).isEqualTo(0L)
        assertThat(decoded.algorithmIdentifier).isEqualTo(AlgorithmIdentifier(RSA_ENCRYPTION, null))
        assertThat(decoded.privateKey.size).isEqualTo(607)
    
        val encoded = CertificateAdapters.privateKeyInfo.toDer(decoded)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

      val tag: Long,
      /** Encode and decode the value once tags are handled. */
      private val codec: Codec<T>,
      /** True if the default value should be used if this value is absent during decoding. */
      val isOptional: Boolean = false,
      /** The value to return if this value is absent. Undefined unless this is optional. */
      val defaultValue: T? = null,
      /** True to set the encoded or decoded value as the type hint for the current SEQUENCE. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java

                String encoded = permissionHelper.encode(value);
                if (encoded != null) {
                    String decoded = permissionHelper.decode(encoded);
                    assertNotNull("Decoded value should not be null for: " + value, decoded);
                    assertEquals("Decoded value should match original: " + value + " -> " + encoded + " -> " + decoded, value, decoded);
                }
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

      @Test
      fun testGoogleDotComEncoding() {
        val encoded = encodeQuery("google.com", TYPE_A)
        assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      private fun encodeQuery(
        host: String,
        type: Int,
      ): String = DnsRecordCodec.encodeQuery(host, type).base64Url().replace("=", "")
    
      @Test
      fun testGoogleDotComEncodingWithIPv6() {
        val encoded = encodeQuery("google.com", TYPE_AAAA)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 20:09:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/FacetResponse.java

            }
    
            /**
             * Gets the decoded name of this field facet.
             *
             * @return the field name
             */
            public String getName() {
                return name;
            }
    
        }
    
        /**
         * Gets the map of query facet counts.
         *
         * @return the queryCountMap containing decoded query strings and their counts
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

          encodeBase64Lines(pkcs1Bytes())
          append("-----END RSA PRIVATE KEY-----\n")
        }
      }
    
      private fun pkcs1Bytes(): ByteString {
        val decoded = CertificateAdapters.privateKeyInfo.fromDer(keyPair.private.encoded.toByteString())
        return decoded.privateKey
      }
    
      /** Build a held certificate with reasonable defaults. */
      class Builder {
        private var notBefore = -1L
        private var notAfter = -1L
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

      val normalized = normalizeNfc(bufferB.readUtf8())
      bufferA.writeUtf8(normalized)
    
      // 3. For each label, convert/validate Punycode.
      val decoded = Punycode.decode(bufferA.readUtf8()) ?: return null
    
      // 4.1 Validate.
    
      // Must be NFC.
      if (decoded != normalizeNfc(decoded)) return null
    
      // TODO: Must not begin with a combining mark.
      // TODO: Each character must be 'valid' or 'deviation'. Not mapped.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top