public class FileIOProvider
extends java.lang.Object
Constructor and Description |
---|
FileIOProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(java.lang.String filePath)
Gets the size of a file based on the filepath
|
java.nio.channels.FileChannel |
open(java.lang.String filePath,
java.lang.String mode)
Opens a file and returns the FileChannel for that file
|
public java.nio.channels.FileChannel open(java.lang.String filePath, java.lang.String mode)
filePath
- The filepath of the filemode
- The mode to open the filepublic long getSize(java.lang.String filePath)
filePath
- - The path to the file