Class ModelArchiveReader
java.lang.Object
org.apache.sling.provisioning.model.io.ModelArchiveReader
The model archive reader can be used to read an archive based on a model
The archive contains the model file and all artifacts.
- Since:
- 1.3
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Model
read
(InputStream in, ModelArchiveReader.ArtifactConsumer consumer) Read a model archive.
-
Constructor Details
-
ModelArchiveReader
public ModelArchiveReader()
-
-
Method Details
-
read
public static Model read(InputStream in, ModelArchiveReader.ArtifactConsumer consumer) throws IOException Read a 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.- Returns:
- The model
- Throws:
IOException
- If anything goes wrong
-