@PublicApi @NotThreadSafe public final class CreateOptions extends Object
Modifier and Type | Method and Description |
---|---|
static CreateOptions |
defaults() |
boolean |
equals(Object o) |
boolean |
getCreateParent() |
String |
getGroup() |
Mode |
getMode() |
String |
getOwner() |
int |
hashCode() |
boolean |
isEnsureAtomic() |
CreateOptions |
setCreateParent(boolean createParent)
Sets option to force creation of parent directories.
|
CreateOptions |
setEnsureAtomic(boolean atomic)
Set atomicity guarantees.
|
CreateOptions |
setGroup(String group) |
CreateOptions |
setMode(Mode mode) |
CreateOptions |
setOwner(String owner) |
String |
toString() |
public static CreateOptions defaults()
CreateOptions
public boolean getCreateParent()
public String getOwner()
public String getGroup()
public Mode getMode()
public boolean isEnsureAtomic()
public CreateOptions setCreateParent(boolean createParent)
createParent
- option to force parent directory creationpublic CreateOptions setEnsureAtomic(boolean atomic)
atomic
- whether to ensure created stream is atomicpublic CreateOptions setOwner(String owner)
owner
- the owner to setpublic CreateOptions setGroup(String group)
group
- the group to setpublic CreateOptions setMode(Mode mode)
mode
- the mode to setCopyright © 2023. All Rights Reserved.