@ThreadSafe public final class WebFileIO extends Object
| Modifier and Type | Method and Description |
|---|---|
static IMutablePathRelativeIO |
getDataIO() |
static com.helger.commons.io.file.FileOperationManager |
getFileOpMgr() |
static IPathRelativeIO |
getServletContextIO() |
static void |
initPaths(File aDataPath,
File aServletContextPath,
boolean bCheckFileAccess) |
static boolean |
isInited() |
static void |
resetPaths()
Reset the base paths - no matter if they were initialized or not.
|
static void |
setFileOpMgr(com.helger.commons.io.file.FileOperationManager aFileOpMgr)
Set the global file operation manager to be used.
|
public static void setFileOpMgr(@Nonnull com.helger.commons.io.file.FileOperationManager aFileOpMgr)
aFileOpMgr - The file operation manager. May not be null.@Nonnull public static com.helger.commons.io.file.FileOperationManager getFileOpMgr()
null.public static void initPaths(@Nonnull File aDataPath, @Nonnull File aServletContextPath, boolean bCheckFileAccess)
public static void resetPaths()
public static boolean isInited()
true if the base path was initialized,
false otherwise@Nonnull public static IMutablePathRelativeIO getDataIO()
IllegalStateException - if no data path was provided. Call
initPaths(File, File, boolean) first.@Nonnull public static IPathRelativeIO getServletContextIO()
IllegalStateException - if no servlet context path was provided. Call
initPaths(File, File, boolean) first.Copyright © 2014–2017 Philip Helger. All rights reserved.