Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 766 for enclosing (0.06 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

     */
    @Throws(IOException::class)
    internal fun BufferedSource.readBomAsCharset(default: Charset): Charset =
      when (select(UNICODE_BOMS)) {
        // a mapping from the index of encoding methods in UNICODE_BOMS to its corresponding encoding method
        0 -> UTF_8
        1 -> UTF_16BE
        2 -> UTF_32LE
        3 -> UTF_16LE
        4 -> UTF_32BE
        -1 -> default
        else -> throw AssertionError()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

        /** Empty response body with no content-type. Closing this response body does nothing. */
        @JvmField
        val EMPTY: ResponseBody = ByteString.EMPTY.toResponseBody()
    
        /**
         * Returns a new response body that transmits this string. If [contentType] is non-null and
         * has a charset other than utf-8 the behaviour differs by platform.
         *
         * On the JVM the encoding will be used instead of utf-8.
         *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CharSink.java

     *       typically implemented by opening a writer using one of the methods in the first category,
     *       doing something and finally closing the writer that was opened.
     * </ul>
     *
     * <p>Any {@link ByteSink} may be viewed as a {@code CharSink} with a specific {@linkplain Charset
     * character encoding} using {@link ByteSink#asCharSink(Charset)}. Characters written to the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertEquals((byte) 0x00, next.maxSetupCount, "Max setup count must be 0");
    
            // Information level defaults to BOTH_DIRECTORY_INFO (0x104) — check via parameters encoding
            byte[] buf = new byte[2 + 2 + 2 + 4 + 2 + filename.length() + 1];
            int n = next.writeParametersWireFormat(buf, 0);
            assertEquals(buf.length, n, "Parameter bytes written should match expected length");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        assertThat(encoding.canDecode(encoded)).isTrue();
        assertThat(encoding.decode(encoded)).isEqualTo(decoded);
      }
    
      private static void assertFailsToDecode(BaseEncoding encoding, String cannotDecode) {
        assertFailsToDecode(encoding, cannotDecode, null);
      }
    
      private static void assertFailsToDecode(
          BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt

            }
    
            override fun onMessage(
              webSocket: WebSocket,
              text: String,
            ) {
              webSocket.send(text)
            }
    
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
              reason: String,
            ) {
              webSocket.close(1000, null)
              latch.countDown()
            }
    
            override fun onFailure(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

        BASE32(BaseEncoding.base32()),
        BASE32_HEX(BaseEncoding.base32Hex()),
        BASE16(BaseEncoding.base16());
    
        final BaseEncoding encoding;
    
        EncodingOption(BaseEncoding encoding) {
          this.encoding = encoding;
        }
      }
    
      @Param EncodingOption encoding;
    
      @Param({"10", "100", "10000"})
      int n;
    
      private final byte[][] encodingInputs = new byte[INPUTS_COUNT][];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt

        codePointString: String,
        encoding: UrlComponentEncodingTester.Encoding,
        component: Component,
      ) {
        testToUrl(codePoint, encoding, component)
        testFromUrl(codePoint, encoding, component)
        testUri(codePoint, codePointString, encoding, component)
      }
    
      private fun testToUrl(
        codePoint: Int,
        encoding: UrlComponentEncodingTester.Encoding,
        component: Component,
      ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/CurlRequestTest.java

        public void testEncodingMethod() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
            String encoding = "ISO-8859-1";
    
            CurlRequest result = request.encoding(encoding);
    
            assertSame(request, result); // Fluent API
            assertEquals(encoding, request.encoding());
        }
    
        @Test
        public void testEncodingAfterParamThrowsException() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            return url;
        }
    
        /**
         * Extracts and processes the site path from a URL with proper encoding handling.
         * Removes protocol, query parameters, and applies URL decoding based on encoding settings.
         *
         * @param u the URL string to process
         * @param encoding the character encoding to use for URL decoding
         * @return the processed site path, abbreviated if necessary
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.8K bytes
    - Viewed (0)
Back to top