All Known Implementing Classes:
ContentImpl

public interface Content
Binary content of Web Resource.
Since:
3.3
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the content type for the resource.
    default boolean
     
    boolean
     
    com.atlassian.sourcemap.ReadableSourceMap
    writeTo(OutputStream out, boolean isSourceMapEnabled)
    Write the resource to the supplied OutputStream and return its Source Map.
  • Method Details

    • writeTo

      com.atlassian.sourcemap.ReadableSourceMap writeTo(OutputStream out, boolean isSourceMapEnabled)
      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 to
      isSourceMapEnabled - 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