Class Transform

java.lang.Object
org.filestack.transforms.Transform
Direct Known Subclasses:
AvTransform, ImageTransform

public class Transform extends Object
Base class for file transformations and conversions.
  • Field Details

    • config

      protected final Config config
    • cdnService

      protected final CdnService cdnService
    • source

      protected final String source
    • isExternal

      protected final boolean isExternal
    • tasks

      protected final ArrayList<TransformTask> tasks
  • Constructor Details

  • Method Details

    • url

      public String url()
      Generates a URL of the transformation. Includes the related FileLink's policy and signature.
      Returns:
      transformation URL
    • getContent

      public okhttp3.ResponseBody getContent() throws IOException
      Returns the content of a transformation.
      Returns:
      raw transformation content, streamable
      Throws:
      HttpException - on error response from backend
      IOException - on network failure
    • getContentJson

      public com.google.gson.JsonObject getContentJson() throws IOException
      Returns the content of a transformation as JSON.
      Throws:
      IOException
      See Also:
    • getContentAsync

      public io.reactivex.Single<okhttp3.ResponseBody> getContentAsync()
      Asynchronously returns the content of a transformation.
      See Also:
    • getContentJsonAsync

      public io.reactivex.Single<com.google.gson.JsonObject> getContentJsonAsync()
      Asynchronously returns the content of a transformation as JSON.
      See Also: