public class FileCreator
extends java.lang.Object
Constructor and Description |
---|
FileCreator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDefaultDirectory()
Returns the name of the default directory.
|
static java.io.File |
newFile(java.lang.String fileName)
Creates a new file with the given name.
|
static void |
setDefaultDirectory(java.lang.String dirName)
Sets the name of the default directory.
|
public static java.lang.String getDefaultDirectory()
public static void setDefaultDirectory(java.lang.String dirName)
dirName
- the name to be set.public static java.io.File newFile(java.lang.String fileName)
fileName
- the file name.