Package org.kie.efesto.common.api.utils
Class FileUtils
- java.lang.Object
-
- org.kie.efesto.common.api.utils.FileUtils
-
public class FileUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilegetFile(String fileName)Retrieve theFileof the given filestatic StringgetFileContent(String fileName)Retrieve the content of the given filestatic FilegetFileFromFileName(String fileName)static FileInputStreamgetFileInputStream(String fileName)Retrieve theFileInputStreamof the given filestatic InputStreamgetInputStreamFromFileName(String fileName)
-
-
-
Method Detail
-
getFile
public static File getFile(String fileName)
Retrieve theFileof the given file- Parameters:
fileName-- Returns:
- Throws:
IOException
-
getFileInputStream
public static FileInputStream getFileInputStream(String fileName) throws IOException
Retrieve theFileInputStreamof the given file- Parameters:
fileName-- Returns:
- Throws:
IOException
-
getFileContent
public static String getFileContent(String fileName) throws IOException
Retrieve the content of the given file- Parameters:
fileName-- Returns:
- Throws:
IOException
-
getInputStreamFromFileName
public static InputStream getInputStreamFromFileName(String fileName)
-
-