|
Crossfire JXClient, Trunk
R20561
|
Utility class to return references to settings files. More...
Collaboration diagram for com.realtime.crossfire.jxclient.settings.Filenames:Static Public Member Functions | |
| static File | getDialogsFile (@NotNull final String skinName) throws IOException |
| Returns the file for storing dialog related information for a skin. More... | |
| static File | getKeybindingsFile (@Nullable final CharSequence hostname, @Nullable final CharSequence character) throws IOException |
| Returns the keybindings file. More... | |
| static File | getMagicMapImageCacheDir () |
| Returns the image cache directory for magic map sized images. More... | |
| static File | getMessageLogFile (@Nullable final String hostname) throws IOException |
| Returns the log file for text message logging. More... | |
| static File | getMetaserverCacheFile () |
| Returns the metaserver cache file. More... | |
| static File | getOriginalImageCacheDir () |
| Returns the image cache directory. More... | |
| static File | getScaledImageCacheDir () |
| Returns the image cache directory for double size images. More... | |
| static File | getSettingsFile () throws IOException |
| Returns the main settings file. More... | |
| static File | getSettingsFile (@NotNull final String filename) throws IOException |
| Returns a file within the settings directory. More... | |
| static File | getShortcutsFile (@NotNull final CharSequence hostname, @NotNull final CharSequence character) throws IOException |
| Returns the shortcuts file. More... | |
Private Member Functions | |
| Filenames () | |
| Private constructor to prevent instantiation. More... | |
Static Private Member Functions | |
| static String | encode (@NotNull final CharSequence str) |
| Encodes a string to make it safe as a file name. More... | |
| static File | getCrossfireFile () throws IOException |
| Returns the crossfire settings directory. More... | |
Utility class to return references to settings files.
Definition at line 34 of file Filenames.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 39 of file Filenames.java.
|
staticprivate |
Encodes a string to make it safe as a file name.
| str | the string to encode |
Definition at line 189 of file Filenames.java.
References com.realtime.crossfire.jxclient.util.HexCodec.hexEncode2().
Referenced by com.realtime.crossfire.jxclient.settings.Filenames.getKeybindingsFile(), and com.realtime.crossfire.jxclient.settings.Filenames.getShortcutsFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Returns the crossfire settings directory.
| IOException | if the settings directory cannot be located |
Definition at line 174 of file Filenames.java.
Referenced by com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Here is the caller graph for this function:
|
static |
Returns the file for storing dialog related information for a skin.
| skinName | identifies the skin |
| IOException | if the file cannot be accessed |
Definition at line 148 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.window.DialogStateParser.load(), and com.realtime.crossfire.jxclient.window.DialogStateParser.save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the keybindings file.
| hostname | the hostname of the character; null |
| character | the character name; null |
| IOException | if the keybindings file cannot be accessed |
Definition at line 122 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.encode(), and com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient(), and com.realtime.crossfire.jxclient.gui.keybindings.KeybindingsManager.loadPerCharacterBindings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the image cache directory for magic map sized images.
Definition at line 77 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the log file for text message logging.
| hostname | the server hostname or null |
| IOException | if the log file cannot be determined |
Definition at line 210 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.window.Logger.log().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the metaserver cache file.
Definition at line 132 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the image cache directory.
Definition at line 47 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the image cache directory for double size images.
Definition at line 62 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the main settings file.
| IOException | if the file cannot be accessed |
Definition at line 93 of file Filenames.java.
Referenced by com.realtime.crossfire.jxclient.settings.Filenames.getDialogsFile(), com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.getFile(), com.realtime.crossfire.jxclient.settings.Filenames.getKeybindingsFile(), com.realtime.crossfire.jxclient.settings.Filenames.getMagicMapImageCacheDir(), com.realtime.crossfire.jxclient.settings.Filenames.getMessageLogFile(), com.realtime.crossfire.jxclient.settings.Filenames.getMetaserverCacheFile(), com.realtime.crossfire.jxclient.settings.Filenames.getOriginalImageCacheDir(), com.realtime.crossfire.jxclient.sound.AudioFileLoader.getResource(), com.realtime.crossfire.jxclient.settings.Filenames.getScaledImageCacheDir(), com.realtime.crossfire.jxclient.settings.Filenames.getShortcutsFile(), and com.realtime.crossfire.jxclient.main.JXClient.JXClient().
Here is the caller graph for this function:
|
static |
Returns a file within the settings directory.
| filename | the filename |
| IOException | if the file cannot be accessed |
Definition at line 159 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getCrossfireFile().
Here is the call graph for this function:
|
static |
Returns the shortcuts file.
| hostname | the hostname of the character; null |
| character | the character name; null |
| IOException | if the file cannot be accessed |
Definition at line 107 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.encode(), and com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.window.ShortcutsLoader.loadShortcuts().
Here is the call graph for this function:
Here is the caller graph for this function: