public class FileAppender extends StreamAppender
| Constructor and Description |
|---|
FileAppender(File file)
Create a new
FileAppender appending to (and not overwriting) the specified File. |
FileAppender(File file,
boolean append)
Create a new
FileAppender writing to the specified File. |
public FileAppender(File file) throws IOException
FileAppender appending to (and not overwriting) the specified File.IOException - If an I/O error occurred opening the file.public FileAppender(File file, boolean append) throws IOException
FileAppender writing to the specified File.append - If true the file will be appended to, otherwise it will be completely
overwritten.IOException - If an I/O error occurred opening the file.Copyright © 2017–2021 Oracle Corporation. All rights reserved.