public class RsFileUtils
extends FileUtils
Constructor and Description |
---|
RsFileUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
appendFileCheck(java.nio.file.Path path) |
static java.lang.String |
byteCountToDisplaySize(java.math.BigInteger fileSize)
Formats a file's size into a human readable format
|
static java.lang.String |
byteCountToDisplaySize(long fileSize)
Formats a file's size into a human readable format
|
static boolean |
checkReadable(java.nio.file.Path path) |
static boolean |
checkWritable(java.nio.file.Path path) |
public static java.lang.String byteCountToDisplaySize(java.math.BigInteger fileSize)
fileSize
- the file's size as BigIntegerpublic static java.lang.String byteCountToDisplaySize(long fileSize)
fileSize
- the file's size as longpublic static java.lang.String appendFileCheck(java.nio.file.Path path)
public static boolean checkReadable(java.nio.file.Path path)
public static boolean checkWritable(java.nio.file.Path path)