public class FileGenerator
extends java.lang.Object
| Constructor and Description |
|---|
FileGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static java.nio.file.Path |
generateFile(java.lang.String parentDirectory,
java.lang.String fileName,
int lengthInBytes)
Generates a file at the specified location
|
public static java.nio.file.Path generateFile(java.lang.String parentDirectory,
java.lang.String fileName,
int lengthInBytes)
throws java.io.FileNotFoundException,
java.io.IOException
parentDirectory - Directory where you would like to create the filefileName - Name of the file to be createdlengthInBytes - Length of the file in bytesjava.io.FileNotFoundException - Thrown if the generation operation failsjava.io.IOException - Thrown if the generation operation fails