|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object urv.util.file.FileUtils
public class FileUtils
Class that encapsulates useful methods to manage files
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 |
---|
public FileUtils()
Method Detail |
---|
public static FileMessage createFileOfCorrectSize(java.lang.String fileName, int size)
fileName
- size
-
public static void generateReceivedFile(FileMessage fileMessage)
fileMessage
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |