public interface FileService
| Modifier and Type | Method and Description |
|---|---|
File |
chmod(int chmod,
File file)
Performs a chmod-like operation on a file.
|
File |
createTempDir(String prefix,
boolean deleteOnExit) |
void |
delete(String kill,
boolean recursive) |
String |
getFileMaybeUnzip(String file,
int chmod) |
String |
getPath(String path)
Return the canonical (fully resolved) path of the given path segment.
|
String |
getResourceMaybeUnzip(String resource,
ClassLoader cl,
int chmod) |
void |
mkdirsTransient(File dest) |
boolean |
saveFile(String path,
String fileName,
String contents) |
boolean |
saveFile(String path,
String fileName,
String contents,
String charset) |
String |
unzip(String resource,
JarFile jarFile,
int chmod) |
String getResourceMaybeUnzip(String resource, ClassLoader cl, int chmod)
File chmod(int chmod, File file)
PosixFilePermission.
A method may be provided to translate decimal input,
but for now, there is an assertion guarding this method.chmod - - A HEXADECIMAL value < 0x777file - - The file to apply the setting uponString getPath(String path)
void mkdirsTransient(File dest)
void delete(String kill, boolean recursive)
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.