Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for StringUtil (0.31 sec)

  1. src/main/java/jcifs/internal/util/StringUtil.java

     * Contains helper methods for string operations, including backported JDK functionality
     * for compatibility with older Java versions.
     */
    public final class StringUtil {
    
        /**
         *
         */
        private StringUtil() {
        }
    
        /**
         * Implementation of {@link java.lang.String#join} backported for JDK7.
         *
         * @param delimiter the separator to use between elements
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

         * <p>
         * Usage example:
         * </p>
         *
         * <pre>
         * StringUtil.defaultString(null, "NULL")  = "NULL"
         * StringUtil.defaultString("", "NULL")    = ""
         * StringUtil.defaultString("aaa", "NULL") = "aaa"
         * StringUtil.defaultString("aaa", null)   = "aaa"
         * StringUtil.defaultString(null, null)    = null
         * </pre>
         *
         * @param str
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                if (StringUtil.isBlank(value)) {
                    map = Collections.emptyMap();
                } else {
                    final Set<String> keySet = new HashSet<>();
                    map = split(value, "\n").get(stream -> stream.filter(StringUtil::isNotBlank).map(s -> {
                        final String[] pair = s.split("=");
                        if (pair.length == 1) {
                            return new Pair<>(StringUtil.EMPTY, pair[0].trim());
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 88.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/StringUtilTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
        void testJoinSingleElement() {
            String result = StringUtil.join(",", "hello");
            assertEquals("hello", result);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("c", StringUtil.substringToLast("abc", "b"));
            assertEquals("c", StringUtil.substringToLast("abcbc", "b"));
            assertEquals("abc", StringUtil.substringToLast("abc", ""));
            assertEquals("abc", StringUtil.substringToLast("abc", null));
            assertEquals("abc", StringUtil.substringToLast("abc", "dddd"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            // Add defensive null/blank checks
            if (StringUtil.isBlank(username) || StringUtil.isBlank(password)) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Login failed: username or password is blank");
                }
                return OptionalEntity.empty();
            }
    
            if (StringUtil.isBlank(fessConfig.getLdapProviderUrl()) || !validate()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 86.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

         * @return the host name, or empty string if URL is blank, or unknown hostname if parsing fails
         */
        default String getHost(final String u) {
            if (StringUtil.isBlank(u)) {
                return StringUtil.EMPTY; // empty
            }
    
            String url = u;
            final String originalUrl = url;
    
            int idx = url.indexOf("://");
            if (idx >= 0) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

         */
        public static String decodePath(final String id) {
            final PathInfo pi = convertToItem(id);
            if (StringUtil.isEmpty(pi.getPath()) && StringUtil.isEmpty(pi.getName())) {
                return StringUtil.EMPTY;
            }
            if (StringUtil.isEmpty(pi.getPath())) {
                return pi.getName();
            }
            return pi.getPath() + "/" + pi.getName();
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

            // For non-AWS endpoints (MinIO, etc.), set custom endpoint with path-style access
            if (StringUtil.isNotBlank(endpoint)) {
                builder.endpointOverride(URI.create(endpoint)).forcePathStyle(true);
            }
    
            this.s3Client = builder.build();
        }
    
        private String getRegion(final String region) {
            return StringUtil.isNotBlank(region) ? region : "us-east-1";
        }
    
        @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java

                credentials = new NTCredentials(username, password == null ? StringUtil.EMPTY : password,
                        workstation == null ? StringUtil.EMPTY : workstation, domain == null ? StringUtil.EMPTY : domain);
            } else {
                credentials = new UsernamePasswordCredentials(username, password == null ? StringUtil.EMPTY : password);
            }
            return credentials;
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 02:07:40 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top