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