Class DefaultMetadataReader
java.lang.Object
org.apache.maven.artifact.repository.metadata.io.DefaultMetadataReader
- All Implemented Interfaces:
- MetadataReader
Handles deserialization of metadata from some kind of textual format like XML.
- 
Field SummaryFields inherited from interface org.apache.maven.artifact.repository.metadata.io.MetadataReaderIS_STRICT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReads the metadata from the specified file.read(InputStream input, Map<String, ?> options) Reads the metadata from the specified byte stream.Reads the metadata from the specified character reader.
- 
Constructor Details- 
DefaultMetadataReaderpublic DefaultMetadataReader()
 
- 
- 
Method Details- 
readDescription copied from interface:MetadataReaderReads the metadata from the specified file.- Specified by:
- readin interface- MetadataReader
- Parameters:
- input- The file to deserialize the metadata from, must not be- null.
- options- The options to use for deserialization, may be- nullto 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.
 
- 
readDescription copied from interface:MetadataReaderReads the metadata from the specified character reader. The reader will be automatically closed before the method returns.- Specified by:
- readin interface- MetadataReader
- Parameters:
- input- The reader to deserialize the metadata from, must not be- null.
- options- The options to use for deserialization, may be- nullto 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.
 
- 
readDescription copied from interface:MetadataReaderReads the metadata from the specified byte stream. The stream will be automatically closed before the method returns.- Specified by:
- readin interface- MetadataReader
- Parameters:
- input- The stream to deserialize the metadata from, must not be- null.
- options- The options to use for deserialization, may be- nullto 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.
 
 
-