Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for decoded (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

     * includes both natural exceptions such as unreachable servers, as well as synthetic exceptions
     * when responses are of an unexpected type or cannot be decoded.
     *
     * Other exception types cancel the current call:
     *
     *  * For synchronous calls made with [Call.execute], the exception is propagated to the caller.
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

         * Extracts and parses parameters from the request query string.
         * Applies the specified character encoding to decode parameter values.
         *
         * @param request the HTTP request containing the query string
         * @param enc the character encoding to use for decoding
         * @return a map of parameter names to their decoded values
         * @throws IOException if an error occurs during parameter parsing
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/net/URLUtil.java

         * @return The decoded string.
         */
        public static String decode(final String s, final String enc) {
            assertArgumentNotEmpty("s", s);
            assertArgumentNotEmpty("enc", enc);
    
            try {
                return URLDecoder.decode(s, enc);
            } catch (final UnsupportedEncodingException e) {
                throw new IORuntimeException(e);
            }
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/misc/Base64Util.java

                encode1pad(inData, num * 3, outData, num * 4);
            }
            return new String(outData);
        }
    
        /**
         * Decodes data encoded in Base64.
         *
         * @param inData
         *            The data to decode
         * @return The decoded data
         */
        public static byte[] decode(final String inData) {
            if (StringUtil.isEmpty(inData)) {
                return null;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt

      }
    
      private fun testToUrl(
        codePoint: Int,
        encoding: UrlComponentEncodingTester.Encoding,
        component: Component,
      ) {
        val encoded = encoding.encode(codePoint)
        val httpUrl = component.urlString(encoded).toHttpUrl()
        val javaNetUrl = httpUrl.toUrl()
        if (javaNetUrl.toString() != javaNetUrl.toString()) {
          fail("Encoding $component $codePoint using $encoding")
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Utf8.java

      /**
       * Returns {@code true} if {@code bytes} is a <i>well-formed</i> UTF-8 byte sequence according to
       * Unicode 6.0. Note that this is a stronger criterion than simply whether the bytes can be
       * decoded. For example, some versions of the JDK decoder will accept "non-shortest form" byte
       * sequences, but encoding never reproduces these. Such byte sequences are <i>not</i> considered
       * well-formed.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top