Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 697 for Streams (0.26 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Map.Entry;
    import java.util.Spliterator;
    import java.util.function.BiPredicate;
    import java.util.stream.Collector;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

              val exception =
                assertFailsWith<IOException> {
                  response.trailers()
                }
              assertThat(exception.message).isIn(
                "Socket closed", // HTTP/1.1
                "stream was reset: CANCEL", // HTTP/2
              )
            }
          assertThat(trailersDelay).isGreaterThan(250.milliseconds)
          assertThat(trailersDelay).isLessThan(750.milliseconds)
        }
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. docs/smb3-features/02-persistent-handles-design.md

            }
        }
        
        private void loadPersistedHandles() {
            try (DirectoryStream<Path> stream = Files.newDirectoryStream(
                    stateDirectory, "*.handle")) {
                for (Path handleFile : stream) {
                    try (ObjectInputStream ois = new ObjectInputStream(
                            Files.newInputStream(handleFile))) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        }
    
        private fun bodyIsStreaming(response: Response): Boolean {
          val contentType = response.body.contentType()
          return contentType != null && contentType.type == "text" && contentType.subtype == "event-stream"
        }
    
        companion object
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 07 02:57:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
      }
    
      /**
       * Regression test for an edge case where closing response body in the HTTP engine doesn't release
       * the corresponding stream allocation. This test keeps those response bodies alive and reads
       * them after the redirect has completed. This forces a connection to not be reused where it would
       * be otherwise.
       *
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (1)
  6. src/test/java/jcifs/util/ResourceManagerTest.java

            var activeResources = resourceManager.getActiveResources();
            assertNotNull(activeResources);
            assertFalse(activeResources.isEmpty());
    
            boolean found = activeResources.stream().anyMatch(desc -> desc.contains("TestResource"));
            assertTrue(found);
        }
    
        @Test
        @DisplayName("Test multiple close calls on managed resource")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

    import java.text.SimpleDateFormat
    import java.util.Date
    import java.util.Locale
    import java.util.TimeZone
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicReference
    import java.util.stream.Stream
    import javax.net.ssl.HostnameVerifier
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.RecordedRequest
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  8. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("Content-Type: text/event-stream")
          .assertLogMatch(Regex("""Transfer-encoding: chunked"""))
          .assertLogEqual("<-- END HTTP (streaming)")
          .assertNoMoreLogs()
        applicationLogs
          .assertLogEqual("--> GET $url")
          .assertLogEqual("--> END GET")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)"""))
          .assertLogEqual("Content-Type: text/event-stream")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 07 02:57:33 UTC 2025
    - 39.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

      }
    
      // Don't allow default serialization.
      @GwtIncompatible
      @J2ktIncompatible
        private void readObjectNoData() throws ObjectStreamException {
        throw new InvalidObjectException("Stream data required");
      }
    
      @GwtIncompatible @J2ktIncompatible   private static final long serialVersionUID = -2250766705698539974L;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/RegularImmutableBiMap.java

            Object writeReplace() {
          return new InverseSerializedForm<>(RegularImmutableBiMap.this);
        }
    
        @J2ktIncompatible // java.io.ObjectInputStream
        private void readObject(ObjectInputStream stream) throws InvalidObjectException {
          throw new InvalidObjectException("Use InverseSerializedForm");
        }
      }
    
      @J2ktIncompatible // serialization
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top