Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for getContentAsStream (0.06 sec)

  1. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

                    try {
                        // Return a CurlResponse with the file's content
                        return new CurlResponse() {
                            @Override
                            public InputStream getContentAsStream() throws IOException {
                                // Use the actual file path from the DictionaryFile
                                return new FileInputStream(new File(file.getPath()));
                            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.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);
            }
        }
    
        /**
         * Reloads the synonym dictionary from an input stream.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.5K 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);
            }
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

                        // Return a CurlResponse with the file's content
                        return new org.codelibs.curl.CurlResponse() {
                            @Override
                            public InputStream getContentAsStream() throws IOException {
                                return new FileInputStream(testFile);
                            }
    
                            @Override
                            public void close() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

                    try {
                        // Return a CurlResponse with the file's content
                        return new CurlResponse() {
                            @Override
                            public InputStream getContentAsStream() throws IOException {
                                return new FileInputStream(testFile);
                            }
    
                            @Override
                            public void close() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/PluginHelper.java

                        throw new PluginException("HTTP Status " + response.getHttpStatusCode() + " : failed to get the artifact from " + url);
                    }
                    try (final InputStream in = response.getContentAsStream()) {
                        CopyUtil.copy(in, ResourceUtil.getPluginPath(fileName).toFile());
                    }
                } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top