Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 72 for createTempFile (0.13 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                }
    
                if (includeContent) {
                    File tempFile = null;
                    File outputFile = null;
                    try {
                        tempFile = File.createTempFile("ftp-", ".tmp");
                        try (OutputStream out = new BufferedOutputStream(new FileOutputStream(tempFile))) {
                            if (!client.retrieveFile(ftpInfo.getName(), out)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

            protected ProtwordsItem item;
    
            protected ProtwordsUpdater(final ProtwordsItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(PROTWORDS, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
                } catch (final Exception e) {
                    if (newFile != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

            protected Writer writer;
    
            protected StopwordsItem item;
    
            protected SynonymUpdater(final StopwordsItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(STOPWORDS, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
                } catch (final Exception e) {
                    if (newFile != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                return false;
            }
    
            return process(thumbnailId, responseData -> {
                final File tempFile = ComponentUtil.getSystemHelper().createTempFile("thumbnail_", "");
                try {
                    CopyUtil.copy(responseData.getResponseBody(), tempFile);
    
                    final String tempPath = tempFile.getAbsolutePath();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/plugin/AdminPluginAction.java

                                this::asListHtml);
                    }
                    final String filename = form.jarFile.getFileName();
                    final File tempFile = ComponentUtil.getSystemHelper().createTempFile("tmp-adminplugin-", ".jar");
                    try (final InputStream is = form.jarFile.getInputStream(); final OutputStream os = new FileOutputStream(tempFile)) {
                        CopyUtil.copy(is, os);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

            protected StemmerOverrideItem item;
    
            protected StemmerOverrideUpdater(final StemmerOverrideItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(STEMMER_OVERRIDE, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
                } catch (final Exception e) {
                    if (newFile != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                systemProperties.reload(options.propertiesPath);
            } else {
                try {
                    final File propFile = ComponentUtil.getSystemHelper().createTempFile("suggest_", ".properties");
                    if (propFile.delete() && logger.isDebugEnabled()) {
                        logger.debug("Deleted a temp file: {}", propFile.getAbsolutePath());
                    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

        private CrawlingConfigHelper crawlingConfigHelper;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            final File propFile = File.createTempFile("system", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes());
            ComponentUtil.register(new DynamicProperties(propFile), "systemProperties");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java

            protected Writer writer;
    
            protected KuromojiItem item;
    
            protected KuromojiUpdater(final KuromojiItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(KUROMOJI, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
                } catch (final Exception e) {
                    if (newFile != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

            validateApi(body, messages -> {});
            return asStream("elevate.csv").contentTypeOctetStream().stream(out -> {
                final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-elevate-", ".csv").toPath();
                try {
                    try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top