@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
FileNotFoundException
public PrintWriter createCategoryExportFileWriter()
public File getCategoriesExportFile() throws FileNotFoundException
FileNotFoundException
public PrintWriter createAssetExportFileWriter(String fileName) throws FileNotFoundException
FileNotFoundException
public boolean createAssetExportFile(String fileName)
public File getAssetExportFile(String fileName) throws FileNotFoundException
FileNotFoundException
public boolean writeBinaryContent(String fileName, byte[] bytes)
public byte[] readBinaryContent(String fileName)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.