Class ModelReader
- java.lang.Object
 - 
- org.apache.sling.provisioning.model.io.ModelReader
 
 
- 
public class ModelReader extends java.lang.ObjectThis class offers a method to read a model using aReaderinstance. 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Modelread(java.io.Reader reader, java.lang.String location)Reads the model file The reader is not closed. 
 - 
 
- 
- 
Method Detail
- 
read
public static Model read(java.io.Reader reader, java.lang.String location) throws java.io.IOException
Reads the model file The reader is not closed. It is up to the caller to close the reader.- Parameters:
 reader- The reader providing the modellocation- Optional location string identifying the source of the model.- Throws:
 java.io.IOException- If an error occurs
 
 - 
 
 -