Class FeatureJSONWriter

java.lang.Object
org.apache.sling.feature.io.json.FeatureJSONWriter

public class FeatureJSONWriter extends Object
This class offers a static method to write a feature using a writer.
  • Constructor Details

    • FeatureJSONWriter

      public FeatureJSONWriter()
  • Method Details

    • write

      public static void write(Writer writer, Feature feature) throws IOException
      Writes the feature to the writer. The writer is not closed.
      Parameters:
      writer - Writer
      feature - Feature
      Throws:
      IOException - If writing fails