Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 59 of 59 for readUtf8 (0.88 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

          )
        call.execute().use { response ->
          assertThat(response.headers)
            .isEqualTo(headersOf("h1", "v1", "h2", "v2"))
          val responseBody = response.body.source()
          assertThat(responseBody.readUtf8(2)).isEqualTo("ok")
          assertThat(responseBody.exhausted()).isTrue()
          assertThat(response.trailers()).isEqualTo(headersOf("trailers", "boom"))
        }
        body.awaitSuccess()
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

            .onResponseEnd(ShutdownConnection)
            .build(),
        )
        assertFailsWith<ProtocolException> {
          val response = getResponse(newRequest("/"))
          response.body.source().readUtf8(5)
        }
      }
    
      private fun testConnectViaSocketFactory(useHttps: Boolean) {
        val uselessSocketFactory: SocketFactory =
          object : SocketFactory() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

      public double readDouble() throws IOException {
        return Double.longBitsToDouble(readLong());
      }
    
      @CanIgnoreReturnValue // to skip a field
      @Override
      public String readUTF() throws IOException {
        return new DataInputStream(in).readUTF();
      }
    
      /**
       * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using
       * little-endian byte order.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      double readDouble();
    
      @CanIgnoreReturnValue // to skip a line
      @Override
      @Nullable String readLine();
    
      @CanIgnoreReturnValue // to skip a field
      @Override
      String readUTF();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(-12150, in.readShort());
        assertEquals(20675, in.readUnsignedShort());
        assertEquals(0xBEBAFECA, in.readInt());
        assertEquals(0xBEBAFECAEFBEADDEL, in.readLong());
        assertEquals("Herby Derby", in.readUTF());
        assertEquals(0xBEBAFECA, Float.floatToIntBits(in.readFloat()));
        assertEquals(0xBEBAFECAEFBEADDEL, Double.doubleToLongBits(in.readDouble()));
      }
    
      public void testSkipBytes() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                }
            }
    
            if (c == -1 && input.length() == 0) {
                return null;
            }
    
            return input.toString();
        }
    
        @Override
        public final String readUTF() throws SmbException {
            final int size = readUnsignedShort();
            final byte[] b = new byte[size];
            read(b, 0, size);
            try {
                return Encdec.dec_utf8(b, 0, size);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertEquals("c", raf.readLine());
    
            when(raf.read()).thenReturn(-1);
            assertNull(raf.readLine());
        }
    
        @Test
        @DisplayName("readUTF(): decodes bytes after size prefix")
        void readUTF_decodes() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
            // Size prefix 3, then bytes for "abc"
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readLine();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public String readUTF() {
          try {
            return input.readUTF();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
      }
    
      /** Returns a new {@link ByteArrayDataOutput} instance with a default size. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                }
            }
    
            if (c == -1 && input.length() == 0) {
                return null;
            }
    
            return input.toString();
        }
    
        @Override
        public final String readUTF() throws SmbException {
            final int size = readUnsignedShort();
            final byte[] b = new byte[size];
            read(b, 0, size);
            try {
                return Encdec.dec_utf8(b, 0, size);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top