Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 45 for adapters (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/org/codelibs/core/log/JclLoggerAdapter.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.log;
    
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    
    /**
     * Logger adapter for Jakarta Commons Logging.
     *
     * @author koichik
     */
    class JclLoggerAdapter implements LoggerAdapter {
    
        protected final String sourceClass;
    
        protected final Log logger;
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

    public final class ParseResponseWithMoshi {
      private final OkHttpClient client = new OkHttpClient();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/log/JulLoggerAdapter.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.log;
    
    import java.util.logging.Level;
    
    /**
     * Adapter that uses java.util.logging loggers.
     *
     * @author koichik
     */
    class JulLoggerAdapter implements LoggerAdapter {
    
        protected final String sourceClass;
    
        protected final java.util.logging.Logger logger;
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  4. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

      private static final Moshi MOSHI = new Moshi.Builder().build();
      private static final JsonAdapter<List<Contributor>> CONTRIBUTORS_JSON_ADAPTER = MOSHI.adapter(
          Types.newParameterizedType(List.class, Contributor.class));
    
      static class Contributor {
        String login;
        int contributions;
      }
    
      public static void main(String... args) throws Exception {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  5. docs/changelogs/changelog_1x.md

     *  Fix a bug in `Content-Length` reporting for gzipped streams in the Apache
        HTTP client adapter. (thanks kwuollett)
     *  Work around the Alcatel `getByInetAddress` bug (thanks k.kocel)
     *  Be more aggressive about testing pooled sockets before reuse. (thanks
        warpspin)
     *  Include `Content-Type` and `Content-Encoding` in the Apache HTTP client
        adapter. (thanks kwuollett)
     *  Add a media type class to OkHttp.
     *  Change custom header prefix:
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Click Count (0)
  6. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

          .addInterceptor(new GzipRequestInterceptor())
          .build();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Map<String, String>> mapJsonAdapter = moshi.adapter(
          Types.newParameterizedType(Map.class, String.class, String.class));
    
      public void run() throws Exception {
        Map<String, String> requestBody = new LinkedHashMap<>();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 04 17:43:43 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/hash/ChecksumHashFunction.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.util.zip.Checksum;
    
    /**
     * {@link HashFunction} adapter for {@link Checksum} instances.
     *
     * @author Colin Decker
     */
    @Immutable
    final class ChecksumHashFunction extends AbstractHashFunction implements Serializable {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/hash/MacHashFunction.java

    import java.nio.ByteBuffer;
    import java.security.InvalidKeyException;
    import java.security.Key;
    import java.security.NoSuchAlgorithmException;
    import javax.crypto.Mac;
    
    /**
     * {@link HashFunction} adapter for {@link Mac} instances.
     *
     * @author Kurt Alfred Kluever
     */
    @Immutable
    final class MacHashFunction extends AbstractHashFunction {
    
      @SuppressWarnings("Immutable") // cloned before each use
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.6K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

    import java.io.Serializable;
    import java.nio.ByteBuffer;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.Arrays;
    
    /**
     * {@link HashFunction} adapter for {@link MessageDigest} instances.
     *
     * @author Kevin Bourrillion
     * @author Dimitris Andreou
     */
    @Immutable
    final class MessageDigestHashFunction extends AbstractHashFunction implements Serializable {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/DerivedTestIteratorGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    
    /**
     * Adapts a test iterable generator to give a TestIteratorGenerator.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    public final class DerivedTestIteratorGenerator<E>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 1.4K bytes
    - Click Count (0)
Back to Top