public class FileUtils extends Object
| Constructor and Description | 
|---|
| FileUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static File | appendDataToTempFile(File file,
                    String dataToAppend)Appends the given data to the file specified in the input and returns the
 reference to the file. | 
| static File | createTempFileForTesting(String fileName)Returns a reference to the file created with the given file name in the
 System's temporary directory. | 
| static File | createTempFileForTesting(String fileName,
                        String data)Creates a file with the given name in the System's temporary directory. | 
| static File | generateRandomAsciiFile(long byteSize)Generate a random ASCII file of the specified number of bytes. | 
| static File | generateRandomAsciiFile(long byteSize,
                       boolean deleteOnExit) | 
public static File createTempFileForTesting(String fileName) throws IOException
fileName - IOExceptionpublic static File createTempFileForTesting(String fileName, String data) throws IOException
fileName - data - IOExceptionpublic static File appendDataToTempFile(File file, String dataToAppend) throws IOException
file - dataToAppend - IOExceptionpublic static File generateRandomAsciiFile(long byteSize) throws IOException
IOExceptionpublic static File generateRandomAsciiFile(long byteSize, boolean deleteOnExit) throws IOException
IOExceptionCopyright © 2019. All rights reserved.