Package ca.uhn.fhir.util
Class FileUtil
java.lang.Object
ca.uhn.fhir.util.FileUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatFileSize
(long theBytes) static String
loadFileAsString
(File theFile) Loads the contents of a File as a UTF-8 encoded string, and wraps any exceptions in an unchecked exception
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
formatFileSize
-
loadFileAsString
Loads the contents of a File as a UTF-8 encoded string, and wraps any exceptions in an unchecked exception- Throws:
InternalErrorException
- If any IOException occurs
-