public abstract class IOUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
IOUtils.IOCallback |
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeStream(InputStream stream) |
static void |
closeStream(OutputStream stream) |
static boolean |
delete(File file)
Delete the given file (can be a simple file or a folder).
|
static void |
doWithIO(IOUtils.IOCallback callback) |
public static void doWithIO(IOUtils.IOCallback callback)
public static void closeStream(InputStream stream)
public static void closeStream(OutputStream stream)
public static boolean delete(File file)
file - the file to be deletedCopyright © 2006–2023. All rights reserved.