| Access | Constructor and Description |
|---|---|
| public | |
| public | FileHandler(final Formatter
the formatter formatter)Construct a new instance with the given formatter and no output file. |
| public | FileHandler(final Formatter
the formatter formatter, final File the file file)Construct a new instance with the given formatter and output file. |
| public | FileHandler(final Formatter
the formatter formatter, final File the file file, final boolean true to append, false to overwriteConstruct a new instance with the given formatter, output file, and append setting. |
| public | |
| public | FileHandler(final File
the file file, final boolean true to append, false to overwriteConstruct a new instance with the given output file and append setting. |
| public | |
| public | FileHandler(final String
the file name fileName, final boolean true to append, false to overwriteConstruct a new instance with the given output file and append setting. |
| Modifier and Type | Method and Description |
|---|---|
| public File | |
| public void | setAppend(final boolean
true to append, false to overwriteSpecify whether to append to the target file. |
| public void | |
| public void |
| FileHandler | back to summary |
|---|---|
| public FileHandler() Construct a new instance with no formatter and no output file. | |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final Formatter formatter) Construct a new instance with the given formatter and no output file.
| |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final Formatter formatter, final File file) throws FileNotFoundException Construct a new instance with the given formatter and output file.
| |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final Formatter formatter, final File file, final boolean append) throws FileNotFoundException Construct a new instance with the given formatter, output file, and append setting.
| |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final File file) throws FileNotFoundException Construct a new instance with the given output file.
| |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final File file, final boolean append) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final String fileName) throws FileNotFoundException Construct a new instance with the given output file.
| |
| FileHandler | back to summary |
|---|---|
| public FileHandler(final String fileName, final boolean append) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| getFile | back to summary |
|---|---|
| public File getFile() Get the current output file.
| |
| setAppend | back to summary |
|---|---|
| public void setAppend(final boolean append) Specify whether to append to the target file.
| |
| setFile | back to summary |
|---|---|
| public void setFile(File file) throws FileNotFoundException Set the output file.
| |
| setFileName | back to summary |
|---|---|
| public void setFileName(String fileName) throws FileNotFoundException Set the output file by name.
| |