Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 842 for IOException (0.7 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

      // Guarded by this.
      override lateinit var bytes: ByteString
      override lateinit var exceptionBytes: ByteString
    
      private var readFailure: IOException? = null
    
      @Throws(IOException::class)
      private fun readTheList() {
        var publicSuffixListBytes: ByteString?
        var publicSuffixExceptionListBytes: ByteString?
    
        try {
          listSource().buffer().use { bufferedSource ->
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

    class KerberosEncDataTest {
    
        /**
         * Test constructor with a valid token.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if a PAC decoding error occurs
         * @throws UnknownHostException if the IP address is not found
         */
        @Test
        void testConstructor() throws IOException, PACDecodingException, UnknownHostException {
            // Build a sample Kerberos EncData structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NetworkExplorer.java

         * @param resp the HTTP servlet response
         * @param file the SMB file to download
         * @throws IOException if an I/O error occurs
         */
        protected void doFile(final HttpServletRequest req, final HttpServletResponse resp, final SmbFile file) throws IOException {
            final byte[] buf = new byte[8192];
    
            @SuppressWarnings("resource")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileInputStream.java

            }
            return this.handle.acquire();
        }
    
        /**
         * Converts an SmbException to an IOException
         *
         * @param se the SmbException to convert
         * @return an IOException wrapping the SmbException
         */
        protected static IOException seToIoe(final SmbException se) {
            IOException ioe = se;
            Throwable root = se.getCause();
            if (root instanceof TransportException) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

    import static org.junit.Assert.assertFalse;
    import static org.junit.Assert.assertTrue;
    
    import java.io.File;
    import java.io.IOException;
    
    import org.codelibs.curl.Curl;
    import org.junit.Test;
    
    public class ContentOutputStreamTest {
    
        @Test
        public void inMemory() throws IOException {
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4 });
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt

          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              e.printStackTrace()
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              response.use {
                if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
                for ((name, value) in response.headers) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      @Throws(IOException::class)
      public fun start(
        inetAddress: InetAddress,
        port: Int,
      ) {
        start(InetSocketAddress(inetAddress, port))
      }
    
      /**
       * Starts the server and binds to the given socket address.
       *
       * @param socketAddress the socket address to bind the server on
       */
      @Synchronized
      @Throws(IOException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

                throw se;
            } catch (final IOException ioe) {
                throw new SmbException("Failed to connect to server", ioe);
            }
        }
    
        /**
         * @param loc
         * @return tree handle
         * @throws IOException
         */
        public synchronized SmbTreeHandleImpl connect(final SmbResourceLocatorImpl loc) throws IOException {
            try (SmbSessionImpl session = getSession()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  9. src/main/java/jcifs/smb1/netbios/SocketOutputStream.java

    import java.io.FilterOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    
    class SocketOutputStream extends FilterOutputStream {
    
        SocketOutputStream(final OutputStream out) {
            super(out);
        }
    
        @Override
        public synchronized void write(final byte[] b, int off, final int len) throws IOException {
            if (len > 0xFFFF) {
                throw new IOException("write too large: " + len);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/CountingOutputStream.java

      public long getCount() {
        return count;
      }
    
      @Override
      public void write(byte[] b, int off, int len) throws IOException {
        out.write(b, off, len);
        count += len;
      }
    
      @Override
      public void write(int b) throws IOException {
        out.write(b);
        count++;
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top