org.gcube.datatransformation.datatransformationlibrary.utils
Class FilesUtils

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.utils.FilesUtils

public class FilesUtils
extends Object

Author:
Dimitris Katris, NKUA Utility class that facilitates local file management.

Constructor Summary
FilesUtils()
           
 
Method Summary
static void streamToFile(InputStream instream, String filename)
          Stores an InputStream to a local file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesUtils

public FilesUtils()
Method Detail

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.