Class FileUtil
java.lang.Object
com.github.toolarium.security.util.FileUtil
File Util class
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileUtilGet the instancereadFileContent(File file) Read the file contentreadFileContent(File file, Charset charset) Read the file contentreadFileContent(Path file) Read the file contentreadFileContent(Path file, Charset charset) Read the file content
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
readFileContent
Read the file content- Parameters:
file- the file- Returns:
- the content
- Throws:
IOException- In case of an IO error
-
readFileContent
Read the file content- Parameters:
file- the file- Returns:
- the content
- Throws:
IOException- In case of an IO error
-
readFileContent
Read the file content- Parameters:
file- the filecharset- the charset- Returns:
- the content
- Throws:
IOException- In case of an IO error
-
readFileContent
Read the file content- Parameters:
file- the filecharset- the charset- Returns:
- the content
- Throws:
IOException- In case of an IO error
-