Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getContentAsStream (0.41 sec)

  1. src/main/java/org/codelibs/curl/CurlResponse.java

            return parser.apply(this);
        }
    
        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
                while (length != -1) {
                    if (length != 0) {
    Java
    - Registered: Thu Apr 25 15:34:08 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

            try {
                zos.putNextEntry(entry);
                try (CurlResponse response = ComponentUtil.getCurlHelper().get("/_" + v1 + "/" + v2).execute()) {
                    CopyUtil.copy(response.getContentAsStream(), zos);
                }
            } catch (final Exception e) {
                logger.warn("Failed to access /_{}/{}", v1, v2, e);
            }
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

            }
        }
    
        protected void reload(final StemmerOverrideUpdater updater) {
            try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) {
                reload(updater, curlResponse.getContentAsStream());
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
            }
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

            }
        }
    
        protected void reload(final ProtwordsUpdater updater) {
            try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) {
                reload(updater, curlResponse.getContentAsStream());
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
            }
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/esreq/AdminEsreqAction.java

                    final File tempFile = ComponentUtil.getSystemHelper().createTempFile("esreq_", ".json");
                    try (final InputStream in = response.getContentAsStream()) {
                        CopyUtil.copy(in, tempFile);
                    } catch (final Exception e1) {
                        if (tempFile != null && tempFile.exists() && !tempFile.delete()) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

            try (final CurlResponse curlResponse = dictionaryManager.getContentResponse(this);
                    final InputStream inputStream = new BufferedInputStream(curlResponse.getContentAsStream())) {
                out.write(inputStream);
            }
        }
    
        public abstract String getType();
    
        public abstract PagingList<T> selectList(int offset, int size);
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    }
                }
            }).execute()) {
    
                try (ServletOutputStream out = response.getOutputStream(); InputStream in = curlResponse.getContentAsStream()) {
                    response.setStatus(curlResponse.getHttpStatusCode());
                    writeHeaders(response);
                    CopyUtil.copy(in, out);
                } catch (final ClientAbortException e) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java

            }
        }
    
        protected void reload(final KuromojiUpdater updater) {
            try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) {
                reload(updater, curlResponse.getContentAsStream());
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
            }
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

            }
        }
    
        protected void reload(final SynonymUpdater updater) {
            try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) {
                reload(updater, curlResponse.getContentAsStream());
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
            }
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

            }
        }
    
        protected void reload(final MappingUpdater updater) {
            try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) {
                reload(updater, curlResponse.getContentAsStream());
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
            }
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top