Package com.vaadin.flow.utils
Class FlowFileUtils
- java.lang.Object
-
- com.vaadin.flow.utils.FlowFileUtils
-
public final class FlowFileUtils extends Object
Util methods for files manipulation.- Since:
- 1.0.
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URLconvertToUrl(File file)static voidforceMkdir(File directory)AFileUtils.forceMkdir(File)wrapper that handlesIOException.
-
-
-
Method Detail
-
forceMkdir
public static void forceMkdir(File directory)
AFileUtils.forceMkdir(File)wrapper that handlesIOException.- Parameters:
directory- the directory to create, must not benull- Throws:
UncheckedIOException- ifFileUtils.forceMkdir(File)throwsIOException
-
convertToUrl
public static URL convertToUrl(File file)
- Parameters:
file- file to convert- Returns:
- corresponding
URL - Throws:
IllegalArgumentException- when fails to convert
-
-