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 | Method and Description |
---|---|
static FileWriteMode |
FileWriteMode.valueOf(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(File file,
FileWriteMode... modes)
Returns a new
ByteSink for writing bytes to the given file. |
static CharSink |
Files.asCharSink(File file,
Charset charset,
FileWriteMode... modes)
Returns a new
CharSink for writing character data to the given
file using the given character set. |
Copyright © 2010-2013. All Rights Reserved.