Class InitialContent
java.lang.Object
com.atlassian.plugin.webresource.impl.support.InitialContent
This class goal is to allow the load of the most appropriate source of content for the file.
It does this by abstracting over a plugin’s filesystem and choosing the most appropriate tangible file to pull content from.
- Since:
- 5.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionInitialContent(InputStream content, String path, com.atlassian.sourcemap.ReadableSourceMap sourceMap) -
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<InputStream>getPath()@NonNull Optional<com.atlassian.sourcemap.ReadableSourceMap>abstract @NonNull ContentConverts the currentInitialContenttoContent.
-
Constructor Details
-
InitialContent
public InitialContent(@Nullable InputStream content, @Nullable String path, @Nullable com.atlassian.sourcemap.ReadableSourceMap sourceMap)
-
-
Method Details
-
getContent
-
getPath
-
getSourceMap
-
toContent
Converts the currentInitialContenttoContent.- Parameters:
originalContent- The original content to be transformed.- Returns:
- The build
Content
-