Package org.apache.juneau.common.utils
Class FileReaderBuilder
java.lang.Object
org.apache.juneau.common.utils.FileReaderBuilder
Utility class for creating 
FileReader objects.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionIf called and the file isnull or non-existent, then thebuild()command will return an empty reader instead of aFileNotFoundException.build()Creates a new File reader.Sets the character encoding of the file.Sets the character encoding of the file.static FileReaderBuildercreate()Creates a new builder.static FileReaderBuilderCreates a new builder initialized with the specified file.Sets the file being written from.Sets the path of the file being written from.
- 
Constructor Details- 
FileReaderBuilderpublic FileReaderBuilder()
 
- 
- 
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.
 
- 
fileSets the file being written from.- Parameters:
- file- The file being written from.
- Returns:
- This object.
 
- 
fileSets the path of the file being written from.- Parameters:
- path- The path of the file being written from.
- 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.
 
- 
allowNoFileIf called and the file isnull or non-existent, then thebuild()command will return an empty reader instead of aFileNotFoundException.- Returns:
- This object.
 
- 
buildCreates a new File reader.- Returns:
- A new File reader.
- Throws:
- FileNotFoundException- If file could not be found.
 
 
-