Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for Read (0.21 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlFactory.java

    /**
     * Generic interface to read/write objects to/from XML.
     *
     * @param <T> the object type to read/write
     * @since 4.0.0
     */
    @Experimental
    public interface XmlFactory<T> extends Service {
    
        @Nonnull
        default T read(@Nonnull Path path) throws XmlReaderException {
            return read(path, true);
        }
    
        @Nonnull
        default T read(@Nonnull Path path, boolean strict) throws XmlReaderException {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Nov 17 15:52:15 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                return new Metadata(new MetadataStaxReader().read(in, false));
            } catch (FileNotFoundException e) {
                throw new RepositoryMetadataReadException("Cannot read metadata from '" + mappingFile + "'", e);
            } catch (IOException | XMLStreamException e) {
                throw new RepositoryMetadataReadException(
                        "Cannot read metadata from '" + mappingFile + "': " + e.getMessage(), e);
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  3. apache-maven/src/test/java/org/apache/maven/settings/GlobalSettingsTest.java

            assertTrue(globalSettingsFile.isFile(), globalSettingsFile.getAbsolutePath());
    
            try (InputStream is = Files.newInputStream(globalSettingsFile.toPath())) {
                new SettingsStaxReader().read(is, true, new InputSource(globalSettingsFile.getAbsolutePath()));
            }
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/api/services/model/InheritanceAssembler.java

         * objects from the parent.
         *
         * @param child The child model into which to merge the values inherited from the parent, must not be
         *            <code>null</code>.
         * @param parent The (read-only) parent model from which to inherit the values, may be <code>null</code>.
         * @param request The model building request that holds further settings, must not be {@code null}.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelProcessor.java

         * @return The deserialized model, never {@code null}.
         * @throws IOException If the model could not be deserialized.
         * @throws XmlReaderException If the input format could not be parsed.
         */
        Model read(XmlReaderRequest request) throws IOException, XmlReaderException;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolver.java

            }
            return result;
        }
    
        private static DependencyResolverException cannotReadModuleInfo(final Path path, final IOException cause) {
            return new DependencyResolverException("Cannot read module information of " + path, cause);
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java

                try {
                    Map<String, ?> options = Collections.singletonMap(MetadataReader.IS_STRICT, Boolean.FALSE);
    
                    Metadata repoMetadata = metadataReader.read(metadata.getFile(), options);
    
                    mergeMetadata(versions, repoMetadata, repository);
                } catch (IOException e) {
                    invalidMetadata(session, trace, metadata, repository, e);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

                if (inputStream != null) {
                    return xml.read(inputStream, request.isStrict(), source);
                } else if (reader != null) {
                    return xml.read(reader, request.isStrict(), source);
                } else if (path != null) {
                    try (InputStream is = Files.newInputStream(path)) {
                        return xml.read(is, request.isStrict(), source);
                    }
                } else {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

                if (inputStream != null) {
                    return xml.read(inputStream, request.isStrict(), source);
                } else if (reader != null) {
                    return xml.read(reader, request.isStrict(), source);
                } else if (path != null) {
                    try (InputStream is = Files.newInputStream(path)) {
                        return xml.read(is, request.isStrict(), source);
                    }
                } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java

                if (reader != null) {
                    return xml.read(reader, request.isStrict());
                } else {
                    return xml.read(inputStream, request.isStrict());
                }
            } catch (Exception e) {
                throw new XmlReaderException("Unable to read toolchains", e);
            }
        }
    
        @Override
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top