Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 30 for newInputStream (0.18 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformerSupport.java

        protected static final String SCHEMA_LOCATION_FORMAT = "https://maven.apache.org/xsd/maven-%s.xsd";
    
        protected Model read(Path src) throws IOException, XMLStreamException {
            try (InputStream is = Files.newInputStream(src)) {
                return new MavenStaxReader().read(is, false, null);
            }
        }
    
        protected void write(Model model, Path dest) throws IOException, XMLStreamException {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/ExplodeZipAndFindJars.groovy

            File gradleJars = outputs.dir("gradle-jars")
            File dependencies = outputs.dir("gradle-dependencies")
            try (ZipInputStream zin = new ZipInputStream(artifact.get().asFile.newInputStream())) {
                ZipEntry zipEntry
                while (zipEntry = zin.nextEntry) {
                    String shortName = zipEntry.name
                    if (shortName.contains('/')) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jul 08 13:44:59 GMT 2021
    - 2.4K bytes
    - Click Count (0)
  3. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

            this.hashCode = Objects.hash(path);
        }
    
        @Override
        public InputStream getInputStream() throws IOException {
            return Files.newInputStream(path);
        }
    
        @Override
        public String getLocation() {
            return path.toString();
        }
    
        /**
         * Gets the file of this source.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 3K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java

                }
            } else {
                File pluginXml = new File(extensionJar, getExtensionDescriptorLocation());
    
                if (pluginXml.canRead()) {
                    try (InputStream is = Files.newInputStream(pluginXml.toPath())) {
                        extensionDescriptor = build(is);
                    }
                }
            }
    
            return extensionDescriptor;
        }
    
        /**
         * @since 3.3.0
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

     *
     * <p>Usage example:</p>
     * <pre>
     * PomMemoryAnalyzer analyzer = new PomMemoryAnalyzer();
     * Model model = reader.read(Files.newInputStream(pomPath));
     * analyzer.analyzePom(model);
     * analyzer.printAnalysis();
     * </pre>
     *
     * <p>The analysis output includes:</p>
     * <ul>
     *   <li>Total memory usage per POM path</li>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java

        @Override
        public Metadata read(File input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
    
            return read(Files.newInputStream(input.toPath()), options);
        }
    
        @Override
        public Metadata read(Reader input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

                    .getFile()
                    .getExists()
                    .contains(BASE_DIR));
        }
    
        private static Model readPom(File file) throws Exception {
            try (InputStream is = Files.newInputStream(file.toPath())) {
                return new MavenStaxReader().read(is);
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  8. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsReader.java

        @Override
        public Settings read(File input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
    
            try (InputStream in = Files.newInputStream(input.toPath())) {
                InputSource source = InputSource.of(input.toString());
                return new Settings(new SettingsStaxReader().read(in, isStrict(options), source));
            } catch (XMLStreamException e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java

            PersistedToolchains toolchains = null;
    
            if (userToolchainsFile != null && userToolchainsFile.isFile()) {
                try (InputStream in = Files.newInputStream(userToolchainsFile.toPath())) {
                    toolchains = new PersistedToolchains(new MavenToolchainsStaxReader().read(in));
                } catch (Exception e) {
                    throw new MisconfiguredToolchainException(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java

        }
    
        private static Settings readSettingsFile(File settingsFile) throws IOException, XMLStreamException {
            try (InputStream is = Files.newInputStream(settingsFile.toPath())) {
                SettingsStaxReader reader = new SettingsStaxReader();
                InputSource source = InputSource.of(settingsFile.toString());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 5.5K bytes
    - Click Count (0)
Back to Top