public class Filenames
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static @NotNull java.nio.file.Path |
getDialogsFile(@NotNull java.lang.String skinName)
Returns the file for storing dialog related information for a skin.
|
static @NotNull java.nio.file.Path |
getKeybindingsFileVersion1(@Nullable java.lang.CharSequence hostname,
@Nullable java.lang.CharSequence character)
Returns the fallback keybindings file.
|
static @NotNull java.nio.file.Path |
getKeybindingsFileVersion2(@Nullable java.lang.CharSequence hostname,
@Nullable java.lang.CharSequence character)
Returns the keybindings file.
|
static @NotNull java.nio.file.Path |
getMagicMapImageCacheDir()
Returns the image cache directory for magic map sized images.
|
static @NotNull java.nio.file.Path |
getMessageLogFile(@Nullable java.lang.String hostname)
Returns the log file for text message logging.
|
static @Nullable java.nio.file.Path |
getMetaserverCacheFile()
Returns the metaserver cache file.
|
static @NotNull java.nio.file.Path |
getOriginalImageCacheDir()
Returns the image cache directory.
|
static @NotNull java.nio.file.Path |
getScaledImageCacheDir()
Returns the image cache directory for double size images.
|
static @NotNull java.nio.file.Path |
getSettingsFile()
Returns the main settings file.
|
static @NotNull java.nio.file.Path |
getSettingsFile(@NotNull java.lang.String filename)
Returns a file within the settings directory.
|
static @NotNull java.nio.file.Path |
getShortcutsFile(@NotNull java.lang.CharSequence hostname,
@NotNull java.lang.CharSequence character)
Returns the shortcuts file.
|
@NotNull public static @NotNull java.nio.file.Path getOriginalImageCacheDir()
@NotNull public static @NotNull java.nio.file.Path getScaledImageCacheDir()
@NotNull public static @NotNull java.nio.file.Path getMagicMapImageCacheDir()
@NotNull public static @NotNull java.nio.file.Path getSettingsFile() throws java.io.IOException
java.io.IOException
- if the file cannot be accessed@NotNull public static @NotNull java.nio.file.Path getShortcutsFile(@NotNull @NotNull java.lang.CharSequence hostname, @NotNull @NotNull java.lang.CharSequence character) throws java.io.IOException
hostname
- the hostname of the character; null
=global key
bindings filecharacter
- the character name; null
=global key bindings
filejava.io.IOException
- if the file cannot be accessed@NotNull public static @NotNull java.nio.file.Path getKeybindingsFileVersion2(@Nullable @Nullable java.lang.CharSequence hostname, @Nullable @Nullable java.lang.CharSequence character) throws java.io.IOException
hostname
- the hostname of the character; null
=global key
bindings filecharacter
- the character name; null
=global key bindings
filejava.io.IOException
- if the keybindings file cannot be accessed@NotNull public static @NotNull java.nio.file.Path getKeybindingsFileVersion1(@Nullable @Nullable java.lang.CharSequence hostname, @Nullable @Nullable java.lang.CharSequence character) throws java.io.IOException
hostname
- the hostname of the character; null
=global key
bindings filecharacter
- the character name; null
=global key bindings
filejava.io.IOException
- if the keybindings file cannot be accessed@Nullable public static @Nullable java.nio.file.Path getMetaserverCacheFile()
null
if the file cannot be
accessed@NotNull public static @NotNull java.nio.file.Path getDialogsFile(@NotNull @NotNull java.lang.String skinName) throws java.io.IOException
skinName
- identifies the skinjava.io.IOException
- if the file cannot be accessed@NotNull public static @NotNull java.nio.file.Path getSettingsFile(@NotNull @NotNull java.lang.String filename) throws java.io.IOException
filename
- the filenamejava.io.IOException
- if the file cannot be accessed@NotNull public static @NotNull java.nio.file.Path getMessageLogFile(@Nullable @Nullable java.lang.String hostname) throws java.io.IOException
hostname
- the server hostname or null
java.io.IOException
- if the log file cannot be determined