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
FieldsModifier and TypeFieldDescriptionprotected final CdnServiceprotected final Configprotected final booleanprotected final Stringprotected final ArrayList<TransformTask> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransform(CdnService cdnService, Config config, String source, boolean isExternal) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.ResponseBodyReturns the content of a transformation.io.reactivex.Single<okhttp3.ResponseBody> Asynchronously returns the content of a transformation.com.google.gson.JsonObjectReturns 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'spolicy 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:
-