Package com.easypost.easyvcr.internal
Class Files
java.lang.Object
com.easypost.easyvcr.internal.Files
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Files
public Files()
-
-
Method Details
-
createFileIfNotExists
Creates a file if it doesn't exist.- Parameters:
filePath- The path to the file.- Throws:
IOException- If the file cannot be created.
-
readFile
Reads a file.- Parameters:
file- The file to read.- Returns:
- The contents of the file.
-
readFile
Reads a file.- Parameters:
filePath- The path to the file.- Returns:
- The contents of the file.
-
writeFile
Writes a file.- Parameters:
filePath- The path to the file.string- The contents to write.- Throws:
IOException
-