Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for flush (0.14 sec)

  1. src/main/java/org/codelibs/fess/app/service/FailureUrlService.java

            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            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);
            }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/service/BadWordService.java

                            list.add(StringUtil.EMPTY);
                        } else {
                            list.add(value.toString());
                        }
                    }
                });
    
                csvWriter.flush();
            } catch (final IOException e) {
                logger.warn("Failed to write a sugget bad word.", e);
            }
        }
    
        private static String getValue(final List<String> list, final int index) {
    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)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

                                    throw new IORuntimeException(e);
                                }
                                return true;
                            });
                            writer.flush();
                        }
                    });
                }
                final String name = id.substring(0, id.length() - NDJSON_EXTENTION.length());
                if ("search_log".equals(name)) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/score/ScoreBooster.java

                        .setScript(new Script(ScriptType.INLINE, scriptLang, scriptCode, params)));
            }
            if (bulkRequestBuilder.numberOfActions() > requestCacheSize) {
                flush();
            }
            return (long) ids.length;
        };
    
        public abstract long process();
    
        protected void enable() {
            final ScoreUpdater scoreUpdater = ComponentUtil.getComponent("scoreUpdater");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/SearchEngineUtil.java

            try (final XContentBuilder builder = func.apply(mediaType.contentBuilder(), ToXContent.EMPTY_PARAMS)) {
                builder.flush();
                return builder.getOutputStream();
            } catch (final IOException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to print the output.", e);
                }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java

                }
                try (final StringWriter sw = new StringWriter(); final PrintWriter pw = new PrintWriter(sw)) {
                    cause.printStackTrace(pw);
                    pw.flush();
                    sb.append(" [ ").append(sw.toString()).append(" ]");
                } catch (final IOException ignore) {}
                return sb.toString();
            };
    
    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)
  7. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

                    }
                }
                return null;
            }
    
            @Override
            public void close() {
                try {
                    writer.flush();
                } catch (final IOException e) {
                    // ignore
                }
                CloseableUtil.closeQuietly(writer);
    
                if (isCommit) {
                    try {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

            }
            try {
                final OutputStream out = jobProcess.getProcess().getOutputStream();
                IOUtils.write(command + "\n", out, Constants.CHARSET_UTF_8);
                out.flush();
            } catch (final IOException e) {
                throw new JobProcessingException(e);
            }
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

            try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    PrintWriter writer = new PrintWriter(baos, false, Constants.CHARSET_UTF_8)) {
                exception.printStackTrace(writer);
                writer.flush();
                append(buf, "exception", () -> StringEscapeUtils.escapeJson(new String(baos.toByteArray(), Constants.CHARSET_UTF_8)));
            } catch (final IOException e) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

                            0, thumbnailWidth, thumbnailHeight, null);
                    ImageIO.write(thumbnail, fessConfig.getThumbnailHtmlImageFormat(), outputFile);
                    image.flush();
                    return Result.OK;
                } finally {
                    reader.dispose();
                }
            }
            return Result.FAILED;
        }
    
        protected enum Result {
    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)
Back to top