Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for newInputStream (0.08 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                        syncContext.acquire(null, Collections.singleton(metadata));
    
                        if (metadata.getPath() != null && Files.exists(metadata.getPath())) {
                            try (InputStream in = Files.newInputStream(metadata.getPath())) {
                                versioning = new Versioning(
                                        new MetadataStaxReader().read(in, false).getVersioning());
    
                                /*
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java

                        throwValidationError(messages -> messages.addErrorsFailedToDownloadBadwordFile(GLOBAL), this::asDownloadHtml);
                    }
                    try (InputStream in = Files.newInputStream(tempFile)) {
                        out.write(in);
                    }
                } finally {
                    Files.delete(tempFile);
                }
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

                throws ParserException, IOException {
            try {
                if (extensionsFile != null && Files.exists(extensionsFile)) {
                    try (InputStream is = Files.newInputStream(extensionsFile)) {
                        return new CoreExtensionsStaxReader().read(is, true).getExtensions();
                    }
                }
                return List.of();
            } catch (XMLStreamException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/elevateword/AdminElevatewordAction.java

                        throwValidationError(messages -> messages.addErrorsFailedToDownloadElevateFile(GLOBAL), this::asDownloadHtml);
                    }
                    try (InputStream in = Files.newInputStream(tempFile)) {
                        out.write(in);
                    }
                } finally {
                    Files.delete(tempFile);
                }
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/AllTests.java

                return;
            }
            Properties props = new Properties();
            try ( FileChannel ch = FileChannel.open(config, StandardOpenOption.READ);
                  InputStream is = Channels.newInputStream(ch) ) {
                props.load(is);
    
            }
            if ( !props.isEmpty() ) {
                Map<String, String> map = toMap(props);
                String cfgname = fname.substring(0, fname.length() - 5);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 14.4K bytes
    - Viewed (0)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

                } catch (MalformedURLException e) {
                    throw new IllegalStateException(e);
                }
            } else {
                return Files.newInputStream(new File(pluginFile, descriptor).toPath());
            }
        }
    
        /**
         * Creates a shallow copy of this plugin descriptor.
         */
        @Override
        public PluginDescriptor clone() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

        }
    
        /*
         * TODO share with DefaultPluginMappingManager.
         */
        protected Metadata readMetadata(File mappingFile) throws RepositoryMetadataReadException {
    
            try (InputStream in = Files.newInputStream(mappingFile.toPath())) {
                return new Metadata(new MetadataStaxReader().read(in, false));
            } catch (FileNotFoundException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/MoreFiles.java

            if (option == NOFOLLOW_LINKS) {
              return false;
            }
          }
          return true;
        }
    
        @Override
        public InputStream openStream() throws IOException {
          return Files.newInputStream(path, options);
        }
    
        private BasicFileAttributes readAttributes() throws IOException {
          return Files.readAttributes(
              path,
              BasicFileAttributes.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/MoreFiles.java

            if (option == NOFOLLOW_LINKS) {
              return false;
            }
          }
          return true;
        }
    
        @Override
        public InputStream openStream() throws IOException {
          return Files.newInputStream(path, options);
        }
    
        private BasicFileAttributes readAttributes() throws IOException {
          return Files.readAttributes(
              path,
              BasicFileAttributes.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            this.location = location;
            this.substitute = substitute;
        }
    
        public void load(Path location) throws IOException {
            try (InputStream is = Files.newInputStream(location)) {
                load(is);
            }
        }
    
        public void load(URL location) throws IOException {
            try (InputStream is = location.openStream()) {
                load(is);
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top