org.gcube.datatransformation.datatransformationlibrary.utils
Class FilesUtils
java.lang.Object
org.gcube.datatransformation.datatransformationlibrary.utils.FilesUtils
public class FilesUtils
- extends Object
- Author:
- Dimitris Katris, NKUA
Utility class that facilitates local file management.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilesUtils
public FilesUtils()
streamToFile
public static void streamToFile(InputStream instream,
String filename)
throws Exception
- Stores an InputStream to a local file.
- Parameters:
instream - The InputStream which will be persisted.filename - The name of the file in which the stream will be persisted.
- Throws:
Exception - If the stream could not be persisted.
Copyright © 2013. All Rights Reserved.