Class ModelArchiveReader
- java.lang.Object
-
- org.apache.sling.provisioning.model.io.ModelArchiveReader
-
public class ModelArchiveReader extends java.lang.Object
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
Nested Classes Modifier and Type Class Description static interface
ModelArchiveReader.ArtifactConsumer
-
Constructor Summary
Constructors Constructor Description ModelArchiveReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Model
read(java.io.InputStream in, ModelArchiveReader.ArtifactConsumer consumer)
Read a model archive.
-
-
-
Method Detail
-
read
public static Model read(java.io.InputStream in, ModelArchiveReader.ArtifactConsumer consumer) throws java.io.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:
java.io.IOException
- If anything goes wrong
-
-