read
public static Set<Feature> read(InputStream in,
ArchiveReader.ArtifactConsumer consumer)
throws IOException
Read a feature model archive. The input stream is not closed. It is up to the
caller to close the input stream.
- Parameters:
in - The input stream to read from.
consumer - The plugin consuming the binaries, including the features.
If no consumer is provided, only the features will be returned.
- Returns:
- The feature models mentioned in the manifest of the archive
- Throws:
IOException - If anything goes wrong