@ApplicationScoped public class FileManager extends Object
| Constructor and Description |
|---|
FileManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createAssetExportFile(String fileName)
Test if the asset filename can be created, using the module uuid.
|
PrintWriter |
createAssetExportFileWriter(String fileName) |
PrintWriter |
createCategoryExportFileWriter() |
PrintWriter |
createModuleExportFileWriter() |
File |
getAssetExportFile(String fileName) |
File |
getCategoriesExportFile() |
File |
getModulesExportFile() |
byte[] |
readBinaryContent(String fileName) |
void |
setExportTempDir(File tempDir) |
boolean |
writeBinaryContent(String fileName,
byte[] bytes) |
public void setExportTempDir(File tempDir)
public PrintWriter createModuleExportFileWriter()
public File getModulesExportFile() throws FileNotFoundException
FileNotFoundExceptionpublic PrintWriter createCategoryExportFileWriter()
public File getCategoriesExportFile() throws FileNotFoundException
FileNotFoundExceptionpublic PrintWriter createAssetExportFileWriter(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic boolean createAssetExportFile(String fileName)
public File getAssetExportFile(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic boolean writeBinaryContent(String fileName, byte[] bytes)
public byte[] readBinaryContent(String fileName)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.