Class JsonContentLoader
- java.lang.Object
-
- io.wcm.devops.conga.plugins.aem.util.JsonContentLoader
-
public final class JsonContentLoader extends Object
Imports JSON data and binary data into Sling resource hierarchy.
-
-
Constructor Summary
Constructors Constructor Description JsonContentLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.wcm.tooling.commons.contentpackagebuilder.element.ContentElement
load(File jsonFile)
Load a JSON file and transform the contained data structured in nested maps, as supported by theContentPackageBuilder
.io.wcm.tooling.commons.contentpackagebuilder.element.ContentElement
load(InputStream inputStream)
Loads a JSON content and transform the contained data structured in nested maps, as supported by theContentPackageBuilder
.
-
-
-
Method Detail
-
load
public io.wcm.tooling.commons.contentpackagebuilder.element.ContentElement load(File jsonFile)
Load a JSON file and transform the contained data structured in nested maps, as supported by theContentPackageBuilder
.- Parameters:
jsonFile
- JSON file- Returns:
- Nested map with content data
-
load
public io.wcm.tooling.commons.contentpackagebuilder.element.ContentElement load(InputStream inputStream) throws IOException
Loads a JSON content and transform the contained data structured in nested maps, as supported by theContentPackageBuilder
.- Parameters:
inputStream
- JSON input stream- Returns:
- Nested map with content data
- Throws:
IOException
- I/O exception
-
-