Interface Content
- All Known Implementing Classes:
ContentImpl
public interface Content
Binary content of Web Resource.
- Since:
- 3.3
-
Method Summary
Modifier and TypeMethodDescriptionReturns the content type for the resource.default booleanbooleancom.atlassian.sourcemap.ReadableSourceMapwriteTo(OutputStream out, boolean isSourceMapEnabled) Write the resource to the supplied OutputStream and return its Source Map.
-
Method Details
-
writeTo
Write the resource to the supplied OutputStream and return its Source Map. Note that the OutputStream will not be closed by this method.- Parameters:
out- the stream to write toisSourceMapEnabled- should the source mab being generated- Returns:
- source map of the resource, may return null.
-
getContentType
String getContentType()Returns the content type for the resource. May return null if it cannot resolve its own content type. -
isTransformed
boolean isTransformed()- Returns:
- if content has been transformed.
-
isPresent
default boolean isPresent()- Returns:
- true if content has been written to the output stream, false otherwise
-