public final class FileUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(InputStream in,
OutputStream out)
Basic stream copy, the streams are already open and stay open
afterward.
|
static File |
createTempDirectory(String prefix,
File parent)
Create a temporary directory which should be deleted on application close.
|
static String |
toFilename(String name,
String extension) |
static String |
toFilename(String prefix,
String suffix,
String extension)
Build a file name.
|
public static final void copy(InputStream in, OutputStream out) throws IOException
in
- input streamout
- output streamIOException
- if there was a problem with the copypublic static File createTempDirectory(String prefix, File parent) throws IOException
prefix
- a prefix for the new directory nameparent
- a directory to put the new directory intoIOException
- if something goes wrong