public final class FileHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteExisting(File file)
Delete with retry.
|
static FileHelper |
getInstance() |
boolean |
isCompressed(File file) |
boolean |
isEmpty(File file) |
boolean |
isGZip(File file) |
boolean |
isReadable(File file) |
boolean |
isWriteable(File file) |
boolean |
isZip(File file) |
File |
parentDirOf(File file) |
boolean |
rename(File from,
File to)
Rename with retry.
|
long |
sizeOf(File file) |
public static final FileHelper getInstance()
public long sizeOf(File file)
public boolean isEmpty(File file)
public boolean deleteExisting(File file)
file - public boolean rename(File from, File to)
from - to - public boolean isReadable(File file)
public boolean isWriteable(File file)
public File parentDirOf(File file)
file - File if one exists, the current working
directory otherwise.public boolean isCompressed(File file)
public boolean isZip(File file)
public boolean isGZip(File file)