@ThreadSafe public final class WebFileIO extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.io.relative.IFileRelativeIO |
getDataIO() |
static com.helger.commons.io.relative.IPathRelativeIO |
getServletContextIO() |
static void |
initPaths(File aDataPath,
String sServletContextPath,
boolean bCheckFileAccess) |
static boolean |
isInited() |
static void |
resetPaths()
Reset the base paths - no matter if they were initialized or not.
|
public static void initPaths(@Nonnull File aDataPath, @Nonnull @Nonempty String sServletContextPath, boolean bCheckFileAccess)
public static void resetPaths()
public static boolean isInited()
true if the base path was initialized,
false otherwise@Nonnull public static com.helger.commons.io.relative.IFileRelativeIO getDataIO()
IllegalStateException - if no data path was provided. Call
initPaths(File, String, boolean) first.@Nonnull public static com.helger.commons.io.relative.IPathRelativeIO getServletContextIO()
IllegalStateException - if no servlet context path was provided. Call
initPaths(File, String, boolean) first.Copyright © 2014–2018 Philip Helger. All rights reserved.