Package | Description |
---|---|
com.google.common.io |
This package contains utility methods and classes for working with Java I/O; for example input
streams, output streams, readers, writers, and files.
|
Modifier and Type | Field and Description |
---|---|
private ImmutableSet<FileWriteMode> |
Files.FileByteSink.modes |
Modifier and Type | Method and Description |
---|---|
static FileWriteMode |
FileWriteMode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileWriteMode[] |
FileWriteMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static ByteSink |
Files.asByteSink(java.io.File file,
FileWriteMode... modes)
Returns a new
ByteSink for writing bytes to the given file. |
static CharSink |
Files.asCharSink(java.io.File file,
java.nio.charset.Charset charset,
FileWriteMode... modes)
Returns a new
CharSink for writing character data to the given file using the given
character set. |
Constructor and Description |
---|
FileByteSink(java.io.File file,
FileWriteMode... modes) |