public class CreateFileOptions extends Object
GoogleCloudFileSystem.| Modifier and Type | Field and Description |
|---|---|
static CreateFileOptions |
DEFAULT |
static String |
DEFAULT_CONTENT_TYPE |
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.
|
CreateFileOptions(boolean overwriteExisting,
String contentType)
Create a file with empty attributes, and optionally overwriting any existing file with one
having the given content-type.
|
CreateFileOptions(boolean overwriteExisting,
String contentType,
Map<String,byte[]> attributes)
Create a file with specified attributes, and optionally overwriting an existing file with one
having the given content-type.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,byte[]> |
getAttributes()
Extended attributes to set when creating a file.
|
String |
getContentType()
Content-type to set when creating a file.
|
boolean |
overwriteExisting()
Get the value of overwriteExisting.
|
public static final String DEFAULT_CONTENT_TYPE
public static final CreateFileOptions DEFAULT
public CreateFileOptions(boolean overwriteExisting)
overwriteExisting - True to overwrite an existing file with the same namepublic CreateFileOptions(boolean overwriteExisting,
String contentType)
overwriteExisting - True to overwrite an existing file with the same namecontentType - content-type for the created filepublic 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 creationpublic CreateFileOptions(boolean overwriteExisting,
String contentType,
Map<String,byte[]> attributes)
overwriteExisting - True to overwrite an existing file with the same namecontentType - content-type for the created fileattributes - File attributes to apply to the file at creationCopyright © 2016. All rights reserved.