Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/jvmTest/kotlin/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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K 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"`.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

            queue.clear();
            int nextStart = 0;
            final int end = block.length();
            boolean afterSynonymProduced = false;
            final ByteArrayDataInput bytesReader = new ByteArrayDataInput();
            for (int idx = 0; idx < synonyms.size(); idx++) {
                final MyToken synonym = synonyms.get(idx);
                tokenizePartialBlock(nextStart, synonym.startOffset, afterSynonymProduced);
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 17K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            int len = this.length;
    
            if (this.next != null) {
                final int nextStart = dstIndex;
                dstIndex += this.next.encode(dst, dstIndex);
                final int off = nextStart - start;
                SMBUtil.writeInt4(off, dst, start + 20);
                len += dstIndex - nextStart;
            }
    
            if (this.digest != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DfsImpl.java

                            r.getShare(), r.getPath(), path, nextPath));
                }
                final DfsReferralData nextstart = resolve(tf, r.getServer(), r.getShare(), nextPath, depthLimit - 1);
                final DfsReferralData next = nextstart;
    
                if (next != null) {
                    do {
                        if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
Back to top