Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 588 for IOException (0.6 sec)

  1. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

      }
    
      public void testWrite() throws IOException {
        sink.write(data);
    
        assertContainsExpectedBytes();
      }
    
      public void testWriteFrom_inputStream() throws IOException {
        sink.writeFrom(new ByteArrayInputStream(data));
    
        assertContainsExpectedBytes();
      }
    
      private void assertContainsExpectedBytes() throws IOException {
        assertArrayEquals(expected, factory.getSinkContents());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      @Throws(IOException::class)
      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) = start(InetSocketAddress(inetAddress, port))
    
      /**
       * Starts the server and binds to the given socket address.
       *
       * @param inetSocketAddress the socket address to bind the server on
       */
      @Synchronized
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testWriteString() throws IOException {
        File temp = createTempFile();
        Files.write(I18N, temp, Charsets.UTF_16LE);
        assertEquals(I18N, Files.toString(temp, Charsets.UTF_16LE));
      }
    
      public void testWriteBytes() throws IOException {
        File temp = createTempFile();
        byte[] data = newPreFilledByteArray(2000);
        Files.write(data, temp);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteStreams.java

            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public float readFloat() {
          try {
            return input.readFloat();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public double readDouble() {
          try {
            return input.readDouble();
          } catch (IOException e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/MultiInputStream.java

       *
       * @param it an iterator of I/O suppliers that will provide each substream
       */
      public MultiInputStream(Iterator<? extends ByteSource> it) throws IOException {
        this.it = checkNotNull(it);
        advance();
      }
    
      @Override
      public void close() throws IOException {
        if (in != null) {
          try {
            in.close();
          } finally {
            in = null;
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

        call.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              exceptionRef.set(e)
              latch.countDown()
            }
    
            @Throws(IOException::class)
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              response.close()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/MoreFilesTest.java

                    throws IOException {
                  Files.deleteIfExists(file);
                  return FileVisitResult.CONTINUE;
                }
    
                @Override
                public FileVisitResult postVisitDirectory(Path dir, IOException exc)
                    throws IOException {
                  if (exc != null) {
                    return FileVisitResult.TERMINATE;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

        return delegate!!.isClosed
      }
    
      @Throws(IOException::class)
      override fun bind(localAddr: SocketAddress) {
        delegate!!.bind(localAddr)
      }
    
      @Throws(IOException::class)
      override fun connect(remoteAddr: SocketAddress) {
        delegate!!.connect(remoteAddr)
      }
    
      @Throws(IOException::class)
      override fun connect(
        remoteAddr: SocketAddress,
        timeout: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/MultiReader.java

        this.it = readers;
        advance();
      }
    
      /** Closes the current reader and opens the next one, if any. */
      private void advance() throws IOException {
        close();
        if (it.hasNext()) {
          current = it.next().openStream();
        }
      }
    
      @Override
      public int read(char[] cbuf, int off, int len) throws IOException {
        checkNotNull(cbuf);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.4K bytes
    - Viewed (2)
  10. android/guava/src/com/google/common/io/Flushables.java

       *     an {@code IOException}.
       * @see Closeables#close
       */
      public static void flush(Flushable flushable, boolean swallowIOException) throws IOException {
        try {
          flushable.flush();
        } catch (IOException e) {
          if (swallowIOException) {
            logger.log(Level.WARNING, "IOException thrown while flushing Flushable.", e);
          } else {
            throw e;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top