Class JSONFeatures


  • public class JSONFeatures
    extends Object
    • Constructor Detail

      • JSONFeatures

        public JSONFeatures()
    • Method Detail

      • read

        public static String read​(Reader reader,
                                  org.apache.sling.feature.ArtifactId optionalId,
                                  String location)
                           throws IOException
        Read the feature and add the id attribute if missing
        Parameters:
        reader - The reader
        optionalId - The artifact id to use if the id attribute is missing
        location - The location
        Returns:
        The feature as a string
        Throws:
        IOException - If reading fails