Interface MetadataReader
- All Known Implementing Classes:
DefaultMetadataReader
public interface MetadataReader
Handles deserialization of metadata from some kind of textual format like XML.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.repository.metadata.MetadataReads the metadata from the specified file.org.apache.maven.artifact.repository.metadata.Metadataread(InputStream input, Map<String, ?> options) Reads the metadata from the specified byte stream.org.apache.maven.artifact.repository.metadata.MetadataReads the metadata from the specified character reader.
-
Field Details
-
IS_STRICT
-
-
Method Details
-
read
org.apache.maven.artifact.repository.metadata.Metadata read(File input, Map<String, ?> options) throws IOException, MetadataParseExceptionReads the metadata from the specified file.- Parameters:
input- The file to deserialize the metadata from, must not benull.options- The options to use for deserialization, may benullto use the default values.- Returns:
- The deserialized metadata, never
null. - Throws:
IOException- If the metadata could not be deserialized.MetadataParseException- If the input format could not be parsed.
-
read
org.apache.maven.artifact.repository.metadata.Metadata read(Reader input, Map<String, ?> options) throws IOException, MetadataParseExceptionReads the metadata from the specified character reader. The reader will be automatically closed before the method returns.- Parameters:
input- The reader to deserialize the metadata from, must not benull.options- The options to use for deserialization, may benullto use the default values.- Returns:
- The deserialized metadata, never
null. - Throws:
IOException- If the metadata could not be deserialized.MetadataParseException- If the input format could not be parsed.
-
read
org.apache.maven.artifact.repository.metadata.Metadata read(InputStream input, Map<String, ?> options) throws IOException, MetadataParseExceptionReads the metadata from the specified byte stream. The stream will be automatically closed before the method returns.- Parameters:
input- The stream to deserialize the metadata from, must not benull.options- The options to use for deserialization, may benullto use the default values.- Returns:
- The deserialized metadata, never
null. - Throws:
IOException- If the metadata could not be deserialized.MetadataParseException- If the input format could not be parsed.
-