Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for nextPart (0.2 sec)

  1. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
          )
    
        parts.nextPart()!!
        val partMno = parts.nextPart()!!
        assertThat(partMno.body.readUtf8()).isEqualTo("mnop")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `cannot read part after calling nextPart`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |efgh
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        ```kotlin
        val response: Response = call.execute()
        val multipartReader = MultipartReader(response.body!!)
    
        multipartReader.use {
          while (true) {
            val part = multipartReader.nextPart() ?: break
            process(part.headers, part.body)
          }
        }
        ```
    
     *  New: `MediaType.parameter()` gets a parameter like `boundary` from a media type like
        `multipart/mixed; boundary="abc"`.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Splitter.java

           * The returned string will be from the end of the last match to the beginning of the next
           * one. nextStart is the start position of the returned substring, while offset is the place
           * to start looking for a separator.
           */
          int nextStart = offset;
          while (offset != -1) {
            int start = nextStart;
            int end;
    
            int separatorPosition = separatorStart(offset);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Splitter.java

           * The returned string will be from the end of the last match to the beginning of the next
           * one. nextStart is the start position of the returned substring, while offset is the place
           * to start looking for a separator.
           */
          int nextStart = offset;
          while (offset != -1) {
            int start = nextStart;
            int end;
    
            int separatorPosition = separatorStart(offset);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DfsImpl.java

                            r.getPath(),
                            path,
                            nextPath));
                }
                DfsReferralData nextstart = resolve(tf, r.getServer(), r.getShare(), nextPath, depthLimit - 1);
                DfsReferralData next = nextstart;
    
                if ( next != null ) {
                    do {
                        if ( log.isDebugEnabled() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
Back to top