Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for read (0.03 sec)

  1. CurlResponse.java

    BufferedInputStream(getContentAsStream()); L57: ByteArrayOutputStream baos = new ByteArrayOutputStream()) { L58: int length = bis.read(bytes); L59: while (length != -1) { L60: if (length != 0) { L61: baos.write(bytes, 0, length); L62: } L63: length = bis.read(bytes); L64: } L65: return baos.toString(encoding); L66: } catch (final Exception e) { L67: throw new CurlException("Failed...
    github.com/codelibs/curl4j/src/main/java/org/co...
    Mon Nov 14 21:05:19 UTC 2022
      4K bytes
  2. FessWebResourceRoot.java

    } L53: } catch (final Exception e) { L54: logger.log(Level.WARNING, e, () -> { L55: final String canonicalPath = possibleJar.getCanonicalPath(); L56: return "Failed to read " + canonicalPath; L57: }); L58: } L59: } L60: } L61: } L62:}...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      2.5K bytes
  3. CurlRequest.java

    (BufferedInputStream bis = new BufferedInputStream(handler.get()); L339: ContentOutputStream dfos = new ContentOutputStream(threshold, Curl.tmpDir)) { L340: final byte[] bytes = new byte[4096]; L341: int length = bis.read(bytes); L342: while (length != -1) { L343: if (length != 0) { L344: final int len = length; L345: logger.fine(() -> { L346: try { L347: ...
    github.com/codelibs/curl4j/src/main/java/org/co...
    Sun Feb 12 12:21:25 UTC 2023
      12.3K bytes
  4. ElevateWordService.java

    } L263: } L264: } catch (final Exception e) { L265: logger.warn("Failed to read a sugget elevate word: {}", list, e); L266: } L267: } L268: elevateWordBhv.refresh(); L269: } catch (final IOException e) { L270: logger.warn("Failed to read a sugget elevate word.", e); L271: } L272: } L273: L274: public void exportCsv(final Writer writer) { L275: final PermissionHelper...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      15.5K bytes
  5. SearchEngineApiManager.java

    CopyUtil.copy(in, out); L212: } catch (final ClientAbortException e) { L213: logger.debug("Client aborts this request.", e); L214: } catch (final IOException e) { L215: logger.error("Failed to read {} from {}", path, filePath); L216: throw new WebApiException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e); L217: } L218: } else { L219: try { L220: writeHeaders(response); L221: ...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Aug 15 08:29:24 UTC 2024
      11.3K bytes
  6. AbstractDataStore.java

    readInterval"); L149: if (StringUtil.isNotBlank(value)) { L150: try { L151: readInterval = Long.parseLong(value); L152: } catch (final NumberFormatException e) { L153: logger.warn("Invalid read interval: {}", value); L154: } L155: } L156: return readInterval; L157: } L158: L159: protected void sleep(final long interval) { L160: ThreadUtil.sleepQuietly(interval); L161: } L162: L163: protected abstract...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      6.3K bytes
  7. HtmlTagBasedGenerator.java

    ing(samplingWidth <= 0 ? 1 : samplingWidth, samplingHeight <= 0 ? 1 : samplingHeight, 0, 0); L160: param.setSourceRegion(new Rectangle(width, height > width ? width : height)); L161: final BufferedImage image = reader.read(0, param); L162: final int thumbnailWidth = fessConfig.getThumbnailHtmlImageThumbnailWidthAsInteger(); L163: final int thumbnailHeight = (int) ((height > width ? width : height) L164: * fessConf...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      7.5K bytes
  8. BadWordService.java

    L138: } L139: } catch (final Exception e) { L140: logger.warn("Failed to read a sugget elevate word: {}", list, e); L141: } L142: } L143: searchEngineClient.refresh("_all"); // TODO replace _all L144: } catch (final IOException e) { L145: logger.warn("Failed to read a sugget elevate word.", e); L146: } L147: } L148: L149: public void exportCsv(final Writer writer) { L150: ...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      7.3K bytes
  9. FessMultipartRequestHandler.java

    MultipartExceededException(msg, actual, permitted, e)); L307: try { L308: final InputStream is = request.getInputStream(); L309: try { L310: final byte[] buf = new byte[1024]; L311: while ((is.read(buf)) != -1) {} L312: } catch (final Exception ignored) {} finally { L313: try { L314: is.close(); L315: } catch (final Exception ignored) {} L316: } L317: } catch (final...
    github.com/codelibs/fess/src/main/java/org/code...
    Wed Oct 23 13:27:21 UTC 2024
      18.6K bytes
  10. HtmlTagBasedGeneratorTest.java

    generator.saveImage(input, outputFile); L88: } L89: assertImageSize(outputFile, 100, 100); L90: L91: } L92: L93: private void assertImageSize(File file, int width, int height) throws IOException { L94: BufferedImage img = ImageIO.read(file); L95: logger.debug("width: {}, height: {}", img.getWidth(), img.getHeight()); L96: assertEquals("Image Width", width, img.getWidth()); L97: assertEquals("Image Height", height, img.getHeight()); L98: } L99:}...
    github.com/codelibs/fess/src/test/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      4.1K bytes
Back to top