urv.util.file
Class FileUtils

java.lang.Object
  extended by urv.util.file.FileUtils

public class FileUtils
extends java.lang.Object

Class that encapsulates useful methods to manage files

Author:
Raśl Gracia

Constructor Summary
FileUtils()
           
 
Method Summary
static FileMessage createFileOfCorrectSize(java.lang.String fileName, int size)
          Creates a FileMessage object filled with the amount of data specified in the size (kb) parameter
static void generateReceivedFile(FileMessage fileMessage)
          This method creates a file into the "receivedFile" folder when an instance of FileMessage is received
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

createFileOfCorrectSize

public static FileMessage createFileOfCorrectSize(java.lang.String fileName,
                                                  int size)
Creates a FileMessage object filled with the amount of data specified in the size (kb) parameter

Parameters:
fileName -
size -
Returns:
FileMessage object

generateReceivedFile

public static void generateReceivedFile(FileMessage fileMessage)
This method creates a file into the "receivedFile" folder when an instance of FileMessage is received

Parameters:
fileMessage -