org.encog.util.file
public final class Directory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE
Default buffer size for read/write operations.
|
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File source,
File target)
Copy the specified file.
|
static boolean |
deleteDirectory(File path)
Delete a directory and all children.
|
static String |
readStream(InputStream is)
Read the entire contents of a stream into a string.
|
static String |
readTextFile(String filename)
Read the entire contents of a stream into a string.
|
public static final int BUFFER_SIZE
public static void copyFile(File source, File target)
source
- The file to copy.target
- The target of the copy.public static boolean deleteDirectory(File path)
path
- The path to delete.public static String readStream(InputStream is)
is
- The input stream to read from.Copyright © 2014. All Rights Reserved.