Class ReadOptions
java.lang.Object
org.apache.opendal.ReadOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longSets the length of the read operation.final longSets the offset of the read operation.final StringOverrides the Cache-Control response header when the service supports it.final StringOverrides the Content-Disposition response header when the service supports it.final StringOverrides the Content-Type response header when the service supports it. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
offset
public final long offsetSets the offset of the read operation. -
length
public final long lengthSets the length of the read operation.- See Also:
-
overrideContentType
Overrides the Content-Type response header when the service supports it. Also applies to presigned read requests. -
overrideCacheControl
Overrides the Cache-Control response header when the service supports it. Also applies to presigned read requests. -
overrideContentDisposition
Overrides the Content-Disposition response header when the service supports it. Use this to set a download filename on a presigned read request.
-
-
Constructor Details
-
ReadOptions
public ReadOptions()
-