Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static Path | getDialogsFile (@NotNull final String skinName) throws IOException |
static Path | getKeybindingsFileVersion1 (@Nullable final CharSequence hostname, @Nullable final CharSequence character) throws IOException |
static Path | getKeybindingsFileVersion2 (@Nullable final CharSequence hostname, @Nullable final CharSequence character) throws IOException |
static Path | getMagicMapImageCacheDir () |
static Path | getMessageLogFile (@Nullable final String hostname) throws IOException |
static Path | getMetaserverCacheFile () |
static Path | getOriginalImageCacheDir () |
static Path | getScaledImageCacheDir () |
static Path | getSettingsFile () throws IOException |
static Path | getSettingsFile (@NotNull final String filename) throws IOException |
static Path | getShortcutsFile (@NotNull final CharSequence hostname, @NotNull final CharSequence character) throws IOException |
Private Member Functions | |
Filenames () | |
Static Private Member Functions | |
static String | encode (@NotNull final CharSequence str) |
static Path | getCrossfireFile () throws IOException |
Utility class to return references to settings files.
Definition at line 37 of file Filenames.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 42 of file Filenames.java.
|
staticprivate |
Encodes a string to make it safe as a file name.
str | the string to encode |
Definition at line 202 of file Filenames.java.
References com.realtime.crossfire.jxclient.util.HexCodec.hexEncode2().
Referenced by com.realtime.crossfire.jxclient.settings.Filenames.getKeybindingsFileVersion1(), com.realtime.crossfire.jxclient.settings.Filenames.getKeybindingsFileVersion2(), and com.realtime.crossfire.jxclient.settings.Filenames.getShortcutsFile().
|
staticprivate |
Returns the crossfire settings directory.
IOException | if the settings directory cannot be located |
Definition at line 187 of file Filenames.java.
Referenced by com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
|
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 164 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().
|
static |
Returns the fallback 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 138 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().
|
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 124 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().
|
static |
Returns the image cache directory for magic map sized images.
Definition at line 80 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
|
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 223 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.window.Logger.log().
|
static |
Returns the metaserver cache file.
Definition at line 148 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
|
static |
Returns the image cache directory.
Definition at line 50 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
|
static |
Returns the image cache directory for double size images.
Definition at line 65 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile().
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient().
|
static |
Returns the main settings file.
IOException | if the file cannot be accessed |
Definition at line 96 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.sound.AudioFileLoader.getInputStream(), com.realtime.crossfire.jxclient.settings.Filenames.getKeybindingsFileVersion1(), com.realtime.crossfire.jxclient.settings.Filenames.getKeybindingsFileVersion2(), 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.settings.Filenames.getScaledImageCacheDir(), com.realtime.crossfire.jxclient.settings.Filenames.getShortcutsFile(), and com.realtime.crossfire.jxclient.main.JXClient.JXClient().
|
static |
Returns a file within the settings directory.
filename | the filename |
IOException | if the file cannot be accessed |
Definition at line 175 of file Filenames.java.
References com.realtime.crossfire.jxclient.settings.Filenames.getCrossfireFile().
|
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 110 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().