Package org.apache.opendal
Class WriteOptions
java.lang.Object
org.apache.opendal.WriteOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
Enables append mode for writing.final String
Sets the Cache-Control header for the object Requires capability: writeWithCacheControlfinal String
Sets the Content-Disposition header for the object Requires capability: writeWithContentDispositionfinal String
Sets the Content-Encoding header for the objectfinal String
Sets the Content-Type header for the object.final String
Sets the If-Match header for conditional writes Requires capability: writeWithIfMatchfinal String
Sets the If-None-Match header for conditional writes Requires capability: writeWithIfNoneMatchfinal boolean
Write only if the file does not exist.Sets custom metadata for the file. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
contentType
Sets the Content-Type header for the object. Requires capability: writeWithContentType -
contentDisposition
Sets the Content-Disposition header for the object Requires capability: writeWithContentDisposition -
cacheControl
Sets the Cache-Control header for the object Requires capability: writeWithCacheControl -
contentEncoding
Sets the Content-Encoding header for the object -
ifMatch
Sets the If-Match header for conditional writes Requires capability: writeWithIfMatch -
ifNoneMatch
Sets the If-None-Match header for conditional writes Requires capability: writeWithIfNoneMatch -
userMetadata
Sets custom metadata for the file. Requires capability: writeWithUserMetadata -
append
public final boolean appendEnables append mode for writing. When true, data will be appended to the end of existing file. Requires capability: writeCanAppend -
ifNotExists
public final boolean ifNotExistsWrite only if the file does not exist. Operation will fail if the file at the designated path already exists. Requires capability: writeWithIfNotExists
-
-
Constructor Details
-
WriteOptions
public WriteOptions()
-