Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2451 - 2460 of 5,169 for String (0.05 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

                System.out.println(i);
                Thread.sleep(10);
                sink.writeUtf8(String.format(" * %s = %s\n", i, factor(i)));
              }
              sink.close();
            } catch (IOException | InterruptedException e) {
              e.printStackTrace();
            }
          }
    
          private String factor(int n) {
            for (int i = 2; i < n; i++) {
              int x = n / i;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindNext2.java

    class Trans2FindNext2 extends SmbComTransaction {
    
        private final int sid, informationLevel;
        private int resumeKey;
        private final int flags;
        private String filename;
    
        Trans2FindNext2(final int sid, final int resumeKey, final String filename) {
            this.sid = sid;
            this.resumeKey = resumeKey;
            this.filename = filename;
            command = SMB_COM_TRANSACTION2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcException.java

         * @param msg the error message
         */
        public DcerpcException(final String msg) {
            super(msg);
        }
    
        /**
         * Constructs a DcerpcException with the specified message and root cause
         *
         * @param msg the error message
         * @param rootCause the underlying cause of this exception
         */
        public DcerpcException(final String msg, final Throwable rootCause) {
            super(msg);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt

      return systemDefault(
        name = "Conscrypt",
        version = "${version.major()}.${version.minor()}",
        ianaSuites = ianaSuites,
      )
    }
    
    fun systemDefault(
      name: String,
      version: String,
      ianaSuites: IanaSuites,
    ): Client {
      val socketFactory = SSLSocketFactory.getDefault() as SSLSocketFactory
      val sslSocket = socketFactory.createSocket() as SSLSocket
    
      return Client(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. README.md

    ---------
    
    This program downloads a URL and prints its contents as a string. [Full source][get_example].
    
    ```java
    OkHttpClient client = new OkHttpClient();
    
    String run(String url) throws IOException {
      Request request = new Request.Builder()
          .url(url)
          .build();
    
      try (Response response = client.newCall(request).execute()) {
        return response.body().string();
      }
    }
    ```
    
    
    Post to a Server
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            assertEquals("null is not available.", exception.getMessage());
            assertNull(exception.getCause());
            assertNull(exception.getComponentName());
        }
    
        public void test_constructor_withEmptyComponentName() {
            // Test constructor with empty component name
            String componentName = "";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmServlet.java

                        return;
                    }
                } else {
                    final String auth = new String(Base64.decode(msg.substring(6)), "US-ASCII");
                    int index = auth.indexOf(':');
                    String user = index != -1 ? auth.substring(0, index) : auth;
                    final String password = index != -1 ? auth.substring(index + 1) : "";
                    index = user.indexOf('\\');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

            long endOfFile;
            long allocationSize;
            int extFileAttributes;
            int fileNameLength;
            int eaSize;
            int shortNameLength;
            String shortName;
            String filename;
    
            @Override
            public String getName() {
                return filename;
            }
    
            @Override
            public int getType() {
                return SmbFile.TYPE_FILESYSTEM;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java

        private static final Logger log = LoggerFactory.getLogger(Smb2CloseRequest.class);
    
        private byte[] fileId;
        private final String fileName;
        private int closeFlags;
    
        /**
         * Constructs a close request with file ID and name
         *
         * @param config
         *            The configuration to use
         * @param fileId
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

      // Keep references to loggers to prevent their configuration from being GC'd.
      private val configuredLoggers = CopyOnWriteArraySet<Logger>()
    
      private val knownLoggers =
        LinkedHashMap<String, String>()
          .apply {
            val packageName = OkHttpClient::class.java.`package`?.name
    
            if (packageName != null) {
              this[packageName] = "OkHttp"
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 22 20:03:31 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top