Package org.apache.juneau.common.utils
Class FileWriterBuilder
java.lang.Object
org.apache.juneau.common.utils.FileWriterBuilder
Utility class for creating 
FileWriter objects.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionappend()Sets the append mode on the writer totrue .buffered()Sets the buffer mode on the writer totrue .build()Creates a new File writer.Sets the character encoding of the file.Sets the character encoding of the file.static FileWriterBuildercreate()Creates a new builder.static FileWriterBuilderCreates a new builder initialized with the specified file.static FileWriterBuilderCreates a new builder initialized with the specified file path.Sets the file being written to.Sets the path of the file being written to.
- 
Constructor Details- 
FileWriterBuilderpublic FileWriterBuilder()
 
- 
- 
Method Details- 
createCreates a new builder.- Returns:
- A new builder.
 
- 
createCreates a new builder initialized with the specified file.- Parameters:
- file- The file being written to.
- Returns:
- A new builder.
 
- 
createCreates a new builder initialized with the specified file path.- Parameters:
- path- The file path being written to.
- Returns:
- A new builder.
 
- 
fileSets the file being written to.- Parameters:
- file- The file being written to.
- Returns:
- This object.
 
- 
fileSets the path of the file being written to.- Parameters:
- path- The path of the file being written to.
- Returns:
- This object.
 
- 
charsetSets the character encoding of the file.- Parameters:
- cs- The character encoding. The default is- Charset.defaultCharset().
- Returns:
- This object.
 
- 
charsetSets the character encoding of the file.- Parameters:
- cs- The character encoding. The default is- Charset.defaultCharset().
- Returns:
- This object.
 
- 
appendSets the append mode on the writer totrue .- Returns:
- This object.
 
- 
bufferedSets the buffer mode on the writer totrue .- Returns:
- This object.
 
- 
buildCreates a new File writer.- Returns:
- A new File writer.
- Throws:
- FileNotFoundException- If file could not be found.
 
 
-