Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SetBytes (0.17 sec)

  1. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
        }
    
        protected boolean isTarget(final String path) {
            return pattern.matcher(path).find();
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

            super.setUp();
            file1 = File.createTempFile("synonym", ".txt");
            FileUtil.writeBytes(file1.getAbsolutePath(),
                    "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2"
                            .getBytes(Constants.UTF_8));
            // TODO set up opensearch and dictionaryManager
            synonymFile = new SynonymFile("1", file1.getAbsolutePath(), new Date());
        }
    
        @Override
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/OsddHelperTest.java

                              <InputEncoding>UTF-8</InputEncoding>
                              <OutputEncoding>UTF-8</OutputEncoding>
                            </OpenSearchDescription>
                            """, new String(InputStreamUtil.getBytes(ins)));
                }
    
                @Override
                public OutputStream stream() {
                    return null;
                }
            });
        }
    
        public void test_init_osddpath_null() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

            FileUtil.write(
                    file1.getAbsolutePath(),
                    "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3"
                            .getBytes(Constants.UTF_8));
        }
    
        @Override
        protected void tearDown() throws Exception {
            file1.delete();
        }
        */
    
        @Override
        public void setUp() throws Exception {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/cache/CacheAction.java

            }
    
            final StreamResponse response = asStream(DocumentUtil.getValue(doc, fessConfig.getIndexFieldDocId(), String.class))
                    .contentType("text/html; charset=UTF-8").data(content.getBytes(Constants.CHARSET_UTF_8));
            response.headerContentDispositionInline(); // TODO will be fixed in lastaflute
            return response;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

                        final Map<String, Object> map = new HashMap<>();
                        final String name = filePath.getFileName().toString();
                        map.put("id", Base64.getUrlEncoder().encodeToString(name.getBytes(StandardCharsets.UTF_8)));
                        map.put("name", name);
                        try {
                            map.put("lastModified", new Date(Files.getLastModifiedTime(filePath).toMillis()));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

            buf.append("\"memory\":{");
            buf.append("\"heap\":{");
            append(buf, "used", () -> mem.getHeapUsed().getBytes()).append(',');
            append(buf, "committed", () -> mem.getHeapCommitted().getBytes()).append(',');
            append(buf, "max", () -> mem.getHeapMax().getBytes()).append(',');
            append(buf, "percent", () -> mem.getHeapUsedPercent());
            buf.append("},");
            buf.append("\"non_heap\":{");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java

            testDir.delete();
            testDir.mkdirs();
            file1 = new File(testDir, "synonym.txt");
            FileUtil.writeBytes(file1.getAbsolutePath(), "abc=>123\nxyz,890".getBytes(Constants.UTF_8));
        }
    
        @Override
        public void tearDown() throws Exception {
            super.tearDown();
            FileUtils.deleteDirectory(testDir);
        }
    
        public void test_init() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/CurlHelper.java

                final String value = username + ":" + password;
                final String basicAuth = "Basic " + java.util.Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));
                request.header("Authorization", basicAuth);
            }
            if (sslSocketFactory != null) {
                request.sslSocketFactory(sslSocketFactory);
            }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

                        } catch (IOException e) {
                            throw new IORuntimeException(e);
                        }
                    } else if (url.contains("plugin/repo2")) {
                        try (InputStream is = ResourceUtil.getResourceAsStream(url)) {
                            return new String(InputStreamUtil.getBytes(is), Constants.UTF_8);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.9K bytes
    - Viewed (0)
Back to top