Klasse ImageHandler

java.lang.Object
de.bytestore.hostinger.handler.ImageHandler

public class ImageHandler extends Object
  • Konstruktordetails

    • ImageHandler

      public ImageHandler()
  • Methodendetails

    • substringVars

      public static List<String> substringVars(String valueIO)
      Gets an array of substrings between the given start and end delimiters from the given string.
      Parameter:
      valueIO - the input string to search for substrings in
      Gibt zurück:
      an array of substrings between the start and end delimiters
    • separatePath

      public static List<String> separatePath(String valueIO)
      Separates a given path string into a list of individual path components.
      Parameter:
      valueIO - the path string to be separated
      Gibt zurück:
      a list of individual path components
    • getDefaultVars

      public static String getDefaultVars(String badgeIO)
      Gets the default variable from the given string.
      Parameter:
      badgeIO - the string to search for the default variable in
      Gibt zurück:
      the default variable as a string
    • isVar

      public static boolean isVar(String varIO)
      Checks if the given string contains any variables.
      Parameter:
      varIO - the string to check for variables
      Gibt zurück:
      true if the string contains variables, false otherwise
    • getVarName

      public static String getVarName(String varIO)
      Removes the variable tags from the given string and returns the variable name.
      Parameter:
      varIO - the string containing the variable name surrounded by variable tags
      Gibt zurück:
      the variable name extracted from the given string
    • replaceVar

      public static String replaceVar(String scriptIO, String keyIO, String valueIO)
      Replaces all occurrences of the given key surrounded by variable tags with the given value in the script string.
      Parameter:
      scriptIO - the string containing the script with variable tags
      keyIO - the key to be replaced in the variable tags
      valueIO - the value to replace the key in the variable tags
      Gibt zurück:
      the script string with all occurrences of the key surrounded by variable tags replaced with the value