Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 844 for Source (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.Source
    import okio.Timeout
    
    /**
     * Replicates a single upstream source into multiple downstream sources. Each downstream source
     * returns the same bytes as the upstream source. Downstream sources may read data either as it
     * is returned by upstream, or after the upstream source has been exhausted.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

       * Returns a view of a slice of this byte source that is at most {@code length} bytes long
       * starting at the given {@code offset}. If {@code offset} is greater than the size of this
       * source, the returned source will be empty. If {@code offset + length} is greater than the size
       * of this source, the returned source will contain the slice starting at {@code offset} and
       * ending at the end of this source.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      public void testContentEquals() throws IOException {
        assertTrue(source.contentEquals(source));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        ByteSource equalSource = new TestByteSource(bytes);
        assertTrue(source.contentEquals(equalSource));
        assertTrue(new TestByteSource(bytes).contentEquals(source));
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(STRING.length(), source.copyTo(sink));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/MavenModelMerger.java

        public Model merge(Model target, Model source, boolean sourceDominant, Map<?, ?> hints) {
            return super.merge(target, source, sourceDominant, hints);
        }
    
        @Override
        protected Model mergeModel(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) {
            context.put(ARTIFACT_ID, target.getArtifactId());
    
            return super.mergeModel(target, source, sourceDominant, context);
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

      @Test
      fun sourceSeesBom() {
        val body = "efbbbf68656c6c6f".decodeHex().toResponseBody()
        val source = body.source()
        assertThat(source.readByte() and 0xff).isEqualTo(0xef)
        assertThat(source.readByte() and 0xff).isEqualTo(0xbb)
        assertThat(source.readByte() and 0xff).isEqualTo(0xbf)
        assertThat(source.readUtf8()).isEqualTo("hello")
      }
    
      @Test
      fun bytesEmpty() {
        val body = body("")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/CharSource.java

            if (!source.isEmpty()) {
              return false;
            }
          }
          return true;
        }
    
        @Override
        public Optional<Long> lengthIfKnown() {
          long result = 0L;
          for (CharSource source : sources) {
            Optional<Long> lengthIfKnown = source.lengthIfKnown();
            if (!lengthIfKnown.isPresent()) {
              return Optional.absent();
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(STRING.length(), source.copyTo(sink));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
      }
    
      /**
       * Returns the trailers. It is only safe to call this once the source stream has been completely
       * exhausted.
       */
      @Throws(IOException::class)
      fun trailers(): Headers {
        this.withLock {
          if (source.finished && source.receiveBuffer.exhausted() && source.readBuffer.exhausted()) {
            return source.trailers ?: EMPTY_HEADERS
          }
          if (errorCode != null) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/fess/es/config/bsbhv/BsFileConfigBhv.java

                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setDepth(DfTypeUtil.toInteger(source.get("depth")));
                result.setDescription(DfTypeUtil.toString(source.get("description")));
                result.setExcludedDocPaths(DfTypeUtil.toString(source.get("excludedDocPaths")));
                result.setExcludedPaths(DfTypeUtil.toString(source.get("excludedPaths")));
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.8K bytes
    - Viewed (0)
Back to top