Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for closeQuietly (0.07 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            plan = this,
            nextPlan = retryTlsConnection,
            throwable = e,
          )
        } finally {
          user.removePlanToCancel(this)
          if (!success) {
            javaNetSocket?.closeQuietly()
            rawSocket.closeQuietly()
          }
        }
      }
    
      /** Does all the work necessary to build a full HTTP or HTTPS connection on a raw socket. */
      @Throws(IOException::class)
      private fun connectSocket() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getTika_hpp() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/program/test.hpp");
            final ExtractData extractData = tikaExtractor.getText(in, null);
            final String content = extractData.getContent();
            CloseableUtil.closeQuietly(in);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

            closeQuietly(viewPath);
            final Path imagePath = ResourceUtil.getImagePath(themeName);
            closeQuietly(imagePath);
            final Path cssPath = ResourceUtil.getCssPath(themeName);
            closeQuietly(cssPath);
            final Path jsPath = ResourceUtil.getJavaScriptPath(themeName);
            closeQuietly(jsPath);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            connection.start()
          } catch (e: IOException) {
            logger.log(Level.INFO, "Http2Server connection failure: $e")
            socket?.closeQuietly()
          } catch (e: Exception) {
            logger.log(Level.WARNING, "Http2Server unexpected failure", e)
            socket?.closeQuietly()
          }
        }
      }
    
      private fun doSsl(socket: Socket): SSLSocket {
        val sslSocket =
          sslSocketFactory.createSocket(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. okhttp-coroutines/src/main/kotlin/okhttp3/coroutines/ExecuteAsync.kt

    package okhttp3.coroutines
    
    import kotlin.coroutines.resumeWithException
    import kotlinx.coroutines.suspendCancellableCoroutine
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.Response
    import okhttp3.internal.closeQuietly
    import okio.IOException
    
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 04:20:30 UTC 2025
    - 1.4K bytes
    - Viewed (1)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

            maskCursor.close()
          }
        }
    
        sinkBuffer.write(messageBuffer, dataSize)
        sink.flush()
      }
    
      override fun close() {
        messageDeflater?.closeQuietly()
        sink.closeQuietly()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                try {
                  checkUpgradeSuccess(response)
                } catch (e: IOException) {
                  failWebSocket(e, response)
                  response.closeQuietly()
                  response.socket?.sink?.closeQuietly()
                  response.socket?.source?.closeQuietly()
                  return
                }
    
              // Apply the extensions. If they're unacceptable initiate a graceful shut down.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

    package okhttp3.internal.cache
    
    import java.io.Closeable
    import java.io.EOFException
    import java.io.Flushable
    import java.io.IOException
    import okhttp3.internal.cache.DiskLruCache.Editor
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Lockable
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.concurrent.assertLockHeld
    import okhttp3.internal.deleteContents
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

            }
        }
    
        public void test_closeQuietly_nonExistentDirectory() {
            Path nonExistentDir = tempDir.resolve("non-existent");
            themeHelper.closeQuietly(nonExistentDir);
            // Should not throw exception
            assertTrue(true);
        }
    
        public void test_closeQuietly_existingDirectory() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

            throw ProtocolException("Expected continuation opcode. Got: ${opcode.toHexString()}")
          }
        }
      }
    
      @Throws(IOException::class)
      override fun close() {
        messageInflater?.closeQuietly()
        source.closeQuietly()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top