public abstract class InitialContent extends Object
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.
| Constructor and Description |
|---|
InitialContent(InputStream content,
String path,
com.atlassian.sourcemap.ReadableSourceMap sourceMap) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull Optional<InputStream> |
getContent() |
@NonNull Optional<String> |
getPath() |
@NonNull Optional<com.atlassian.sourcemap.ReadableSourceMap> |
getSourceMap() |
abstract @NonNull Content |
toContent(@NonNull Content originalContent)
Converts the current
InitialContent to Content. |
public InitialContent(@Nullable InputStream content, @Nullable String path, @Nullable com.atlassian.sourcemap.ReadableSourceMap sourceMap)
public @NonNull Optional<InputStream> getContent()
public @NonNull Optional<com.atlassian.sourcemap.ReadableSourceMap> getSourceMap()
public abstract @NonNull Content toContent(@NonNull Content originalContent)
InitialContent to Content.originalContent - The original content to be transformed.ContentCopyright © 2024 Atlassian. All rights reserved.