Class FileUtil
- java.lang.Object
-
- org.gcube.application.geoportalcommon.config.FileUtil
-
public class FileUtil extends Object
The Class FileUtil.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Dec 2, 2021
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilecopyInputStreamToFile(InputStream is, String to)Copy input stream to file.static FileinputStreamToTempFile(InputStream inputStream, String fileName)Input stream to temp file.static FileinputStreamToTempFile(String copyString, String prefixFile)Input stream to temp file.
-
-
-
Method Detail
-
inputStreamToTempFile
public static File inputStreamToTempFile(InputStream inputStream, String fileName) throws IOException
Input stream to temp file.- Parameters:
inputStream- the input streamfileName- the file name- Returns:
- the file
- Throws:
IOException- Signals that an I/O exception has occurred.
-
inputStreamToTempFile
public static File inputStreamToTempFile(String copyString, String prefixFile) throws IOException
Input stream to temp file.- Parameters:
copyString- the copy string- Returns:
- Throws:
IOException- Signals that an I/O exception has occurred.
-
copyInputStreamToFile
public static File copyInputStreamToFile(InputStream is, String to) throws IOException
Copy input stream to file.- Parameters:
is- the isto- the to- Returns:
- the file
- Throws:
IOException- Signals that an I/O exception has occurred.
-
-