public final class FileContents extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FileContents.FileContentsException
Exception that indicates a
FileContents related
problem. |
Constructor and Description |
---|
FileContents(File baseDirectory,
File file)
Constructor.
|
public FileContents(File baseDirectory, File file) throws FileContents.FileContentsException
baseDirectory
- Base directory used to resolve relative filenames.file
- Relative filename.FileContents.FileContentsException
- If an error occurs.public void create(Directory baseDirectory) throws FileContents.FileContentsException
FileContents
to the given directory,
overwriting any existing content.baseDirectory
- The base directory.FileContents.FileContentsException
- If an error occurs.Copyright © 2000-2014. All Rights Reserved.