- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for Writer (0.04 sec)
-
ApiAdminBackupAction.java
(hit.getId()) + "\"}}\n"); L93: writer.write(hit.getSourceAsString()); L94: writer.write("\n"); L95: } catch (final IOException e) { L96: throw new IORuntimeException(e); L97: } L98: return true; L99: }); L100: writer.flush(); L101: } L102: }); L103:...github.com/codelibs/fess/src/main/java/org/code...Sat Oct 12 01:54:15 UTC 2024 6.1K bytes -
ProtwordsFile.java
{ L244: throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e); L245: } L246: } L247: L248: public void write(final String line) { L249: try { L250: writer.write(line); L251: writer.write(Constants.LINE_SEPARATOR); L252: } catch (final IOException e) { L253: throw new DictionaryException("Failed to write: " + line, e); L254: } L255: } L256: L257: ...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:11:58 UTC 2024 9.6K bytes -
StopwordsFile.java
{ L244: throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e); L245: } L246: } L247: L248: public void write(final String line) { L249: try { L250: writer.write(line); L251: writer.write(Constants.LINE_SEPARATOR); L252: } catch (final IOException e) { L253: throw new DictionaryException("Failed to write: " + line, e); L254: } L255: } L256: L257: ...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:11:58 UTC 2024 9.6K bytes -
MonitorTarget.java
StringBuilder appendException(final StringBuilder buf, final Exception exception) { L63: try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); L64: PrintWriter writer = new PrintWriter(baos, false, Constants.CHARSET_UTF_8)) { L65: exception.printStackTrace(writer); L66: writer.flush(); L67: append(buf, "exception", () -> StringEscapeUtils.escapeJson(new String(baos.toByteArray(), Constants.CHARSET_UTF_8))); L68: } catch (final IOException...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:11:58 UTC 2024 3K bytes -
ApiAdminBadwordAction.java
L174: final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath(); L175: try { L176: try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) { L177: badWordService.exportCsv(writer); L178: } catch (final Exception e) { L179: logger.warn("Failed to process a request.", e); L180: throwValidationErrorApi(messages...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 8.4K bytes -
ThreadDumpUtil.java
processThreadDump(logger::error); L48: } L49: L50: public static void writeThreadDump(final String file) { L51: try (final Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), Constants.CHARSET_UTF_8))) { L52: processThreadDump(s -> { L53: try { L54: writer.write(s); L55: writer.write('\n'); L56: } catch (final IOException e) { L57: throw new IORuntimeException(e); L58:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 2.5K bytes -
KuromojiFile.java
{ L246: throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e); L247: } L248: } L249: L250: public void write(final String line) { L251: try { L252: writer.write(line); L253: writer.write(Constants.LINE_SEPARATOR); L254: } catch (final IOException e) { L255: throw new DictionaryException("Failed to write: " + line, e); L256: } L257: } L258: L259: ...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:11:58 UTC 2024 9.7K bytes -
BadWordService.java
logger.warn("Failed to read a sugget elevate word.", e); L146: } L147: } L148: L149: public void exportCsv(final Writer writer) { L150: final CsvConfig cfg = new CsvConfig(',', '"', '"'); L151: cfg.setEscapeDisabled(false); L152: cfg.setQuoteDisabled(false); L153: @SuppressWarnings("resource") L154: final CsvWriter csvWriter = new CsvWriter(writer, cfg); L155: try { L156: final List<String> list = new ArrayList<>(); L157: list.add("BadWord");...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 7.3K bytes -
ApiAdminElevatewordAction.java
final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-elevate-", ".csv").toPath(); L184: try { L185: try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) { L186: elevateWordService.exportCsv(writer); L187: } catch (final Exception e) { L188: logger.warn("Failed to process a request.", e); L189: throwValidat...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 9.6K bytes -
OsddHelper.java
response."); L102: } L103: L104: return new StreamResponse(osddFile.getName()).contentType(contentType + "; charset=" + encoding).stream(out -> { L105: try (InputStream ins = new FileInputStream(osddFile)) { L106: out.write(ins); L107: } L108: }); L109: } L110: L111: public void setOsddPath(final String osddPath) { L112: this.osddPath = osddPath; L113: } L114: L115: public void setEncoding(final String encoding) { L116: this.encoding...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 3.7K bytes