Class EngineFileSystem
java.lang.Object
com.blackrook.fs.FileSystem
com.blackrook.engine.EngineFileSystem
public class EngineFileSystem
extends com.blackrook.fs.FileSystem
Main file system tree for Engine applications.
- Author:
- Matthew Tropiano
-
Field Summary
Fields inherited from class com.blackrook.fs.FileSystem
fileStack -
Method Summary
Modifier and TypeMethodDescriptionCreates a new file off of the global settings path provided byEngineConfig.createUserSettingFile(String path) Creates a new file off of the user settings path provided byEngineConfig.Gets the path to a file in the global setting path.getUserSettingFilePath(String path) Gets the path to a file in the user setting path.openGlobalSettingFile(String path) Creates a new file off of the global settings path provided byEngineConfig.openUserSettingFile(String path) Creates a new file off of the user settings path provided byEngineConfig.voidpushArchive(com.blackrook.fs.FSFileArchive fsfa) Methods inherited from class com.blackrook.fs.FileSystem
addArchive, createFile, getAllFileInstances, getAllFiles, getAllFiles, getAllFilesInDir, getAllFilesInDir, getFile, popArchive, removeArchive
-
Method Details
-
pushArchive
public void pushArchive(com.blackrook.fs.FSFileArchive fsfa) - Overrides:
pushArchivein classcom.blackrook.fs.FileSystem
-
createGlobalSettingFile
Creates a new file off of the global settings path provided byEngineConfig. IfEngineConfig.getGlobalSettingsPath()returns null, the base path is the current working directory.- Parameters:
path- the path to use.- Returns:
- an open OutputStream for writing to the file, or null if it couldn't be open.
- Throws:
IOException- if a write error occurs.- See Also:
-
createUserSettingFile
Creates a new file off of the user settings path provided byEngineConfig. IfEngineConfig.getUserSettingsPath()returns null, the base path is the current working directory.- Parameters:
path- the path to use.- Returns:
- an open OutputStream for writing to the file, or null if it couldn't be open.
- Throws:
IOException- if a write error occurs.- See Also:
-
openGlobalSettingFile
Creates a new file off of the global settings path provided byEngineConfig. IfEngineConfig.getGlobalSettingsPath()returns null, the base path is the current working directory.- Parameters:
path- the path to use.- Returns:
- an open InputStream for reading from the file, or null if the file does not exist.
- Throws:
IOException- if a read error occurs.- See Also:
-
openUserSettingFile
Creates a new file off of the user settings path provided byEngineConfig. IfEngineConfig.getUserSettingsPath()returns null, the base path is the current working directory.- Parameters:
path- the path to use.- Returns:
- an open InputStream for reading from the file.
- Throws:
IOException- if a read error occurs.- See Also:
-
getGlobalSettingFilePath
-
getUserSettingFilePath
-