public class FileSystem extends Object implements ShellFeature
Constructor and Description |
---|
FileSystem() |
Modifier and Type | Method and Description |
---|---|
void |
cd(File dir) |
static void |
copy(InputStream in,
OutputStream out) |
static void |
copyFile(File src,
File dst) |
static void |
copyTree(File src,
File dst) |
static void |
deleteTree(File dir) |
static void |
emptyDirectory(File dir) |
List<File> |
getStack() |
void |
install(Shell shell)
Install the feature in the given shell instance.
|
File |
popd() |
File |
pushd(File dir) |
File |
pwd() |
static String |
read(InputStream in) |
static List<String> |
readAndMergeLines(InputStream in) |
static String |
readContent(InputStream in) |
static String |
readFile(File file) |
static List<String> |
readLines(InputStream in) |
File |
resolveFile(String path) |
static void |
writeFile(File file,
byte[] buf) |
static void |
writeFile(File file,
String buf) |
public FileSystem()
public void install(Shell shell)
ShellFeature
install
in interface ShellFeature
public File resolveFile(String path)
public static void deleteTree(File dir)
public static void emptyDirectory(File dir)
public static void copyTree(File src, File dst) throws IOException
IOException
public static void copyFile(File src, File dst) throws IOException
IOException
public static void copy(InputStream in, OutputStream out) throws IOException
IOException
public static String readContent(InputStream in) throws IOException
IOException
public static List<String> readLines(InputStream in) throws IOException
IOException
public static List<String> readAndMergeLines(InputStream in) throws IOException
IOException
public static String readFile(File file) throws IOException
IOException
public static String read(InputStream in) throws IOException
IOException
public static void writeFile(File file, byte[] buf) throws IOException
IOException
public static void writeFile(File file, String buf) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.