- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for abbreviateLongText (0.22 sec)
-
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
} public void test_abbreviateLongText() { assertEquals("", systemHelper.abbreviateLongText("")); assertEquals(4000, systemHelper.abbreviateLongText(Stream.generate(() -> "a").limit(4000).collect(Collectors.joining())).length()); assertEquals(4000, systemHelper.abbreviateLongText(Stream.generate(() -> "a").limit(4001).collect(Collectors.joining())).length()); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 18.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java
} catch (final Throwable t) { logger.warn("Failed to execute {}: {}", id, script, t); jobLog.setJobStatus(Constants.FAIL); jobLog.setScriptResult(systemHelper.abbreviateLongText(t.getLocalizedMessage())); } finally { if (task != null) { try { task.stop(); } catch (final Exception e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/FailureUrlService.java
try (final StringWriter sw = new StringWriter(); final PrintWriter pw = new PrintWriter(sw)) { t.printStackTrace(pw); pw.flush(); return systemHelper.abbreviateLongText(sw.toString()); } catch (final IOException e) { logger.warn("Failed to print the stack trace {}", t.getMessage(), e); } return StringUtil.EMPTY; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Jun 24 01:20:42 UTC 2024 - 6.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SystemHelper.java
forceStop.set(b); } public String generateDocId(final Map<String, Object> map) { return UUID.randomUUID().toString().replace("-", StringUtil.EMPTY); } public String abbreviateLongText(final String str) { return StringUtils.abbreviate(str, ComponentUtil.getFessConfig().getMaxLogOutputLengthAsInteger()); } public String normalizeHtmlLang(final String value) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Oct 17 12:10:08 UTC 2024 - 27.2K bytes - Viewed (0)