Package org.apache.sling.feature.io.json
Class FeatureJSONReader
java.lang.Object
org.apache.sling.feature.io.json.FeatureJSONReader
This class offers a static method to read a
Feature
using a Reader
instance.-
Method Summary
-
Method Details
-
read
Read a new feature from the reader The reader is not closed. It is up to the caller to close the reader.- Parameters:
reader
- The reader for the featurelocation
- Optional location- Returns:
- The read feature
- Throws:
IOException
- If an IO errors occurs or the JSON is invalid.
-