Class ResourcesIO
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.io.resource.ResourcesIO
I/O operations over any resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
createTempDirectory
(@NotNull String dirName, @NotNull String... resources) Creates temporary directory.static InputStream
getResourceInputStream
(@NotNull String resource) Gets resource from resource folder.
-
Constructor Details
-
ResourcesIO
public ResourcesIO()
-
-
Method Details
-
getResourceInputStream
public static InputStream getResourceInputStream(@NotNull @NotNull String resource) throws IOException Gets resource from resource folder.- Parameters:
resource
- resource- Returns:
- resource as
InputStream
- Throws:
IOException
- if any exception happens
-
createTempDirectory
public static Path createTempDirectory(@NotNull @NotNull String dirName, @NotNull @NotNull String... resources) throws IOException Creates temporary directory.- Throws:
IOException
-