public class CreateFileOptions extends Object
GoogleCloudFileSystem
.Modifier and Type | Field and Description |
---|---|
static CreateFileOptions |
DEFAULT |
static Map<String,byte[]> |
EMPTY_ATTRIBUTES |
Constructor and Description |
---|
CreateFileOptions(boolean overwriteExisting)
Create a file with empty attributes and optionally overwriting any existing file.
|
CreateFileOptions(boolean overwriteExisting,
Map<String,byte[]> attributes)
Create a file with specified attributes and optionally overwriting an existing file.
|
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
getAttributes()
Extended attributes to set when creating a file.
|
boolean |
overwriteExisting()
Get the value of overwriteExisting.
|
public static final CreateFileOptions DEFAULT
public CreateFileOptions(boolean overwriteExisting)
overwriteExisting
- True to overwrite an existing file with the same namepublic CreateFileOptions(boolean overwriteExisting, Map<String,byte[]> attributes)
overwriteExisting
- True to overwrite an existing file with the same nameattributes
- File attributes to apply to the file at creationCopyright © 2015. All rights reserved.