Class TextFactory

java.lang.Object
overit.geocall.platform.TextFactory

public class TextFactory extends Object
This class implements the object used to create a text instances starting from a resource; the resource is passed as parameter to the make methods in the form of a string defining a path. The methods will use the localization mechanism to retrieve the correct source.
  • Constructor Details

    • TextFactory

      public TextFactory()
  • Method Details

    • make

      public static String make(String resource, Object caller)
      Creates and returns the text that corresponds to the resource passed as parameter
      Parameters:
      resource - The resource used to make the text
      caller - The caller object
      Returns:
      The text that corresponds to the resource
    • make

      protected static String make(InputStream is) throws IOException
      Throws:
      IOException