Class FilenameUtils

java.lang.Object
com.realtime.crossfire.jxclient.util.FilenameUtils

public class FilenameUtils extends Object
Utility class for manipulating filenames.
  • Method Details

    • quoteName

      @NotNull public static @NotNull String quoteName(@NotNull @NotNull String name)
      Converts a file name to a "safe" form. The returned file name will not contain any "unsafe" characters (see UNSAFE_FILENAME_CHARACTERS), and it will not be empty.
      Parameters:
      name - the file name to convert
      Returns:
      the converted file name