Class ResourcesIO

java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.io.resource.ResourcesIO

public class ResourcesIO extends Object
I/O operations over any resources.
  • 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