Package org.filestack.transforms
Class Transform
java.lang.Object
org.filestack.transforms.Transform
- Direct Known Subclasses:
AvTransform
,ImageTransform
Base class for file transformations and conversions.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CdnService
protected final Config
protected final boolean
protected final String
protected final ArrayList
<TransformTask> -
Constructor Summary
ModifierConstructorDescriptionprotected
Transform
(CdnService cdnService, Config config, String source, boolean isExternal) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.ResponseBody
Returns the content of a transformation.io.reactivex.Single
<okhttp3.ResponseBody> Asynchronously returns the content of a transformation.com.google.gson.JsonObject
Returns the content of a transformation as JSON.io.reactivex.Single
<com.google.gson.JsonObject> Asynchronously returns the content of a transformation as JSON.url()
Generates a URL of the transformation.
-
Field Details
-
config
-
cdnService
-
source
-
isExternal
protected final boolean isExternal -
tasks
-
-
Constructor Details
-
Transform
-
-
Method Details
-
url
Generates a URL of the transformation. Includes the relatedFileLink's
policy and signature.- Returns:
- transformation URL
-
getContent
Returns the content of a transformation.- Returns:
- raw transformation content, streamable
- Throws:
HttpException
- on error response from backendIOException
- on network failure
-
getContentJson
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:
-