Class Strings

java.lang.Object
de.gurkenlabs.litiengine.resources.Strings

public final class Strings extends Object
  • Field Details

  • Method Details

    • setEncoding

      public void setEncoding(Charset charset)
    • get

      public String get(String key)
    • get

      public String get(String key, Object... args)
    • getFrom

      public String getFrom(String bundleName, String key, Object... args)
    • getList

      public String[] getList(String textFile)
      Get a list of strings from the specified raw text files. Strings are separated by a new line.
      This method is not cached. Ever call will open up a new InputStream to read the strings from the text file.
      Parameters:
      textFile - The text file that will be retrieved.
      Returns:
      A list with all strings that are contained by the text file.
    • contains

      public boolean contains(String key)
    • contains

      public boolean contains(String bundleName, String key)