Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,066 for Closed (0.25 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        while (true) {
          if (closed) throw IOException("closed")
    
          if (frameLength > 0L) {
            source.readFully(messageFrameBuffer, frameLength)
    
            if (!isClient) {
              messageFrameBuffer.readAndWriteUnsafe(maskCursor!!)
              maskCursor.seek(messageFrameBuffer.size - frameLength)
              toggleMask(maskCursor, maskKey!!)
              maskCursor.close()
            }
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CharSink.java

        checkNotNull(charSequence);
    
        Closer closer = Closer.create();
        try {
          Writer out = closer.register(openStream());
          out.append(charSequence);
          out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CloserTest.java

        Closer closer = new Closer(suppressor);
    
        IOException exception = new IOException();
    
        // c2 is added last, closed first
        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.throwsOnClose(exception));
    
        try {
          closer.close();
        } catch (Throwable expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        assertEquals(STRING, sink.getString());
      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestReader in = new TestReader();
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testWriteLines_withSpecificSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/AppendableWriter.java

        checkNotClosed();
        if (target instanceof Flushable) {
          ((Flushable) target).flush();
        }
      }
    
      @Override
      public void close() throws IOException {
        this.closed = true;
        if (target instanceof Closeable) {
          ((Closeable) target).close();
        }
      }
    
      @Override
      public Writer append(char c) throws IOException {
        checkNotClosed();
        target.append(c);
        return this;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ContiguousSet.java

       * (inclusive) to {@code upper} (inclusive). (These are the same values contained in {@code
       * Range.closed(lower, upper)}.)
       *
       * @throws IllegalArgumentException if {@code lower} is greater than {@code upper}
       * @since 23.0
       */
      public static ContiguousSet<Integer> closed(int lower, int upper) {
        return create(Range.closed(lower, upper), DiscreteDomain.integers());
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/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(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

        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)) {
          TestByteSource failSource = new TestByteSource(new byte[10], option);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CharSinkTest.java

        assertEquals(STRING, sink.getString());
      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestReader in = new TestReader();
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testWriteLines_withSpecificSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

            else -> minOf(maxResult, delimiterIndex)
          }
        }
    
        @Throws(IOException::class)
        override fun close() {
          if (closed) return
          closed = true
          currentPart = null
          source.close()
        }
    
        /** A single part in a multipart body. */
        class Part(
          @get:JvmName("headers") val headers: Headers,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top