public final class Strings
extends java.lang.Object
  • Field Summary

    Modifier and TypeFieldDescription
    static java.lang.StringDEFAULT_BUNDLE 
  • Method Summary

    Modifier and TypeMethodDescription
    booleancontains​(java.lang.String key) 
    booleancontains​(java.lang.String bundleName, java.lang.String key) 
    java.lang.Stringget​(java.lang.String key) 
    java.lang.Stringget​(java.lang.String key, java.lang.Object... args) 
    java.lang.StringgetFrom​(java.lang.String bundleName, java.lang.String key, java.lang.Object... args) 
    java.lang.String[]getList​(java.lang.String textFile)
    Get a list of strings from the specified raw text files.
    voidsetEncoding​(java.nio.charset.Charset charset) 

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • setEncoding

      public void setEncoding​(java.nio.charset.Charset charset)
    • get

      public java.lang.String get​(java.lang.String key)
    • get

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

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

      public java.lang.String[] getList​(java.lang.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.
      textFile - The text file that will be retrieved.
      A list with all strings that are contained by the text file.
    • contains

      public boolean contains​(java.lang.String key)
    • contains

      public boolean contains​(java.lang.String bundleName, java.lang.String key)