public final class FileCollector extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Clean all files in storage.
|
File |
createFile()
Create new file with generated name in storage.
|
File |
createFile(String fileName)
Create file with specified
fileName in storage. |
static FileCollector |
getInstance() |
File |
getStore() |
void |
stop() |
public static FileCollector getInstance()
public void clean()
public void stop()
public File createFile(String fileName) throws IOException
fileName in storage.fileName - file nameIOException - if any i/o error occurspublic File createFile() throws IOException
IOException - if any i/o error occurspublic File getStore()
Copyright © 2012–2016 Codenvy, S.A.. All rights reserved.