Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for EOFException (0.04 sec)

  1. guava/src/com/google/common/io/ByteStreams.java

       * @throws EOFException if this stream reaches the end before reading all the bytes.
       * @throws IOException if an I/O error occurs.
       */
      public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException {
        int read = read(in, b, off, len);
        if (read != len) {
          throw new EOFException(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import java.io.Closeable
    import java.io.EOFException
    import java.io.IOException
    import java.net.ProtocolException
    import okhttp3.internal.http1.HeadersReader
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString.Companion.encodeUtf8
    import okio.Options
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

    import assertk.assertions.isFalse
    import assertk.assertions.isInstanceOf
    import assertk.assertions.isLessThan
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.io.EOFException
    import java.io.IOException
    import java.io.InterruptedIOException
    import java.net.HttpURLConnection
    import java.net.ProtocolException
    import java.net.SocketTimeoutException
    import java.time.Duration
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http1
    
    import java.io.EOFException
    import java.io.IOException
    import java.net.ProtocolException
    import java.util.concurrent.TimeUnit.MILLISECONDS
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.HttpUrl
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.EOFException
    import java.io.IOException
    import java.io.InterruptedIOException
    import java.net.SocketTimeoutException
    import java.util.ArrayDeque
    import okhttp3.Headers
    import okhttp3.internal.concurrent.Lockable
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt

        }
      }
    
      /**
       * Copy [byteCount] bytes from the file at [pos] into `sink`. It is the
       * caller's responsibility to make sure there are sufficient bytes to read: if there aren't this
       * method throws an `EOFException`.
       */
      fun read(
        pos: Long,
        sink: Buffer,
        byteCount: Long,
      ) {
        if (byteCount < 0L) {
          throw IndexOutOfBoundsException()
        }
        var mutablePos = pos
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

     */
    
    package com.google.common.io;
    
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Strings;
    import com.google.common.collect.ImmutableList;
    import java.io.EOFException;
    import java.io.FilterReader;
    import java.io.IOException;
    import java.io.Reader;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.io.Writer;
    import java.nio.CharBuffer;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CharStreamsTest.java

     */
    
    package com.google.common.io;
    
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Strings;
    import com.google.common.collect.ImmutableList;
    import java.io.EOFException;
    import java.io.FilterReader;
    import java.io.IOException;
    import java.io.Reader;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.io.Writer;
    import java.nio.CharBuffer;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isGreaterThan
    import assertk.assertions.isLessThan
    import assertk.assertions.isTrue
    import java.io.EOFException
    import java.io.IOException
    import java.net.ProtocolException
    import java.net.SocketTimeoutException
    import java.util.Random
    import kotlin.test.assertFailsWith
    import okhttp3.FailingCall
    import okhttp3.Headers
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.Closeable
    import java.io.EOFException
    import java.io.IOException
    import java.util.logging.Level.FINE
    import java.util.logging.Logger
    import okhttp3.internal.and
    import okhttp3.internal.format
    import okhttp3.internal.http2.Http2.CONNECTION_PREFACE
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top