public class FileManager extends Object
Constructor and Description |
---|
FileManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areByteArraysEqual(byte[] b1,
byte[] b2) |
void |
deleteDir(File dir) |
void |
deleteFile(File file) |
File |
getRootDirectory() |
File |
newFile(File dir,
String name) |
File |
newFile(String name) |
String |
readInputStreamReaderAsString(InputStreamReader in) |
FileManager |
setUp() |
void |
tearDown() |
static void |
write(File f,
byte[] data) |
void |
write(File f,
String text) |
File |
write(String fileName,
String text) |
File |
write(String path,
String fileName,
String text) |
static void |
writeBytes(File f,
byte[] data) |
public FileManager setUp()
public void tearDown()
public File getRootDirectory()
public void deleteDir(File dir)
public void deleteFile(File file)
public void write(File f, String text) throws IOException
IOException
public static void write(File f, byte[] data) throws IOException
IOException
public static void writeBytes(File f, byte[] data) throws IOException
IOException
public File write(String fileName, String text) throws IOException
IOException
public File write(String path, String fileName, String text) throws IOException
IOException
public String readInputStreamReaderAsString(InputStreamReader in) throws IOException
IOException
public static boolean areByteArraysEqual(byte[] b1, byte[] b2)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.