Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for InputStream (0.79 sec)

  1. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

            assertTrue(stopwordsFile.stopwordsItemList.size() < originalSize);
        }
    
        // Test reload with InputStream
        public void test_reload_withComments() {
            String content = "# This is a comment\n" + "word1\n" + "\n" + // empty line
                    "word2\n" + "# Another comment\n" + "word3\n";
    
            InputStream is = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
            stopwordsFile.reload(null, is);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.time.LocalDateTime;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.kuromojiFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.protwordsFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadStopwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.stopwordsFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

            verifyToken(() -> uploadpage(form.dictId));
            return stopwordsService.getStopwordsFile(form.dictId).map(file -> {
                try (InputStream inputStream = form.stopwordsFile.getInputStream()) {
                    file.update(inputStream);
                } catch (final IOException e) {
                    logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

            // Regression test for case where DecodingException was swallowed by default implementation
            // of
            // InputStream.read(byte[], int, int)
            // See https://github.com/google/guava/issues/3542
            Reader reader = new StringReader(cannotDecode);
            InputStream decodingStream = encoding.decodingStream(reader);
            try {
              ByteStreams.exhaust(decodingStream);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/unit/TestSystemProperties.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.unit;
    
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Properties;
    
    import org.codelibs.core.misc.DynamicProperties;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Test implementation of system properties that loads from classpath
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

            verifyToken(() -> uploadpage(form.dictId));
            return charMappingService.getCharMappingFile(form.dictId).map(file -> {
                try (InputStream inputStream = form.charMappingFile.getInputStream()) {
                    file.update(inputStream);
                } catch (final IOException e) {
                    logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  10. 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);
            }
        }
    
        /**
         * Gets the type identifier for this dictionary file.
         *
         * @return the dictionary type
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top