@Component(role=MetadataReader.class) public class DefaultMetadataReader extends java.lang.Object implements MetadataReader
IS_STRICT| Constructor and Description |
|---|
DefaultMetadataReader() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.artifact.repository.metadata.Metadata |
read(java.io.File input,
java.util.Map<java.lang.String,?> options)
Reads the metadata from the specified file.
|
org.apache.maven.artifact.repository.metadata.Metadata |
read(java.io.InputStream input,
java.util.Map<java.lang.String,?> options)
Reads the metadata from the specified byte stream.
|
org.apache.maven.artifact.repository.metadata.Metadata |
read(java.io.Reader input,
java.util.Map<java.lang.String,?> options)
Reads the metadata from the specified character reader.
|
public org.apache.maven.artifact.repository.metadata.Metadata read(java.io.File input,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException
MetadataReaderread in interface MetadataReaderinput - The file to deserialize the metadata from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.public org.apache.maven.artifact.repository.metadata.Metadata read(java.io.Reader input,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException
MetadataReaderread in interface MetadataReaderinput - The reader to deserialize the metadata from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.public org.apache.maven.artifact.repository.metadata.Metadata read(java.io.InputStream input,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException
MetadataReaderread in interface MetadataReaderinput - The stream to deserialize the metadata from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the metadata could not be deserialized.MetadataParseException - If the input format could not be parsed.