Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 219 for unclosed (0.56 sec)

  1. android/guava/src/com/google/common/collect/TreeRangeMap.java

        public void put(Range<K> range, V value) {
          checkArgument(
              subRange.encloses(range), "Cannot put range %s into a subRangeMap(%s)", range, subRange);
          TreeRangeMap.this.put(range, value);
        }
    
        @Override
        public void putCoalescing(Range<K> range, V value) {
          if (entriesByLowerBound.isEmpty() || !subRange.encloses(range)) {
            put(range, value);
            return;
          }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ClosingFuture.java

            add(newCloseables, directExecutor());
          }
        }
    
        @Override
        public void close() {
          if (closed) {
            return;
          }
          synchronized (this) {
            if (closed) {
              return;
            }
            closed = true;
          }
          for (Map.Entry<AutoCloseable, Executor> entry : entrySet()) {
            closeQuietly(entry.getKey(), entry.getValue());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteSink.java

    import java.nio.charset.Charset;
    
    /**
     * A destination to which bytes can be written, such as a file. Unlike an {@link OutputStream}, a
     * {@code ByteSink} is not an open, stateful stream that can be written to and closed. Instead, it
     * is an immutable <i>supplier</i> of {@code OutputStream} instances.
     *
     * <p>{@code ByteSink} provides two kinds of methods:
     *
     * <ul>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteSink.java

    import java.nio.charset.Charset;
    
    /**
     * A destination to which bytes can be written, such as a file. Unlike an {@link OutputStream}, a
     * {@code ByteSink} is not an open, stateful stream that can be written to and closed. Instead, it
     * is an immutable <i>supplier</i> of {@code OutputStream} instances.
     *
     * <p>{@code ByteSink} provides two kinds of methods:
     *
     * <ul>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]));
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testClosesOnErrors_copyingFromByteSourceThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteSinkTest.java

      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]));
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testClosesOnErrors_copyingFromByteSourceThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      @Override
      public boolean encloses(Range<C> otherRange) {
        int index =
            SortedLists.binarySearch(
                ranges,
                Range::lowerBound,
                otherRange.lowerBound,
                Ordering.natural(),
                ANY_PRESENT,
                NEXT_LOWER);
        return index != -1 && ranges.get(index).encloses(otherRange);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/CopyUtil.java

        // from InputStream to OutputStream
        //
        /**
         * Copies from an input stream to an output stream.
         * <p>
         * Neither the input stream nor the output stream is closed.
         * </p>
         *
         * @param in the input stream (must not be {@literal null})
         * @param out the output stream (must not be {@literal null})
         * @return the number of bytes copied
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

              val source = Buffer().writeUtf8("hello")
              return object : ForwardingSource(source) {
                override fun close() {
                  closed = true
                  super.close()
                }
              }.buffer()
            }
          }
        body.source().close()
        assertThat(closed).isTrue()
      }
    
      @Test
      fun throwingUnderlyingSourceClosesQuietly() {
        val body: ResponseBody =
          object : ResponseBody() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

       * most [BufferedSource] instances, but not of [Buffer].
       */
      private fun responseBody(content: String): ResponseBody {
        val data = Buffer().writeUtf8(content)
        val source: Source =
          object : Source {
            var closed = false
    
            override fun close() {
              closed = true
            }
    
            override fun read(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top