Package de.bytestore.hostinger.handler
Klasse ImageHandler
java.lang.Object
de.bytestore.hostinger.handler.ImageHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
getDefaultVars
(String badgeIO) Gets the default variable from the given string.static String
getVarName
(String varIO) Removes the variable tags from the given string and returns the variable name.static boolean
Checks if the given string contains any variables.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.separatePath
(String valueIO) Separates a given path string into a list of individual path components.substringVars
(String valueIO) Gets an array of substrings between the given start and end delimiters from the given string.
-
Konstruktordetails
-
ImageHandler
public ImageHandler()
-
-
Methodendetails
-
substringVars
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
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
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
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
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
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 tagskeyIO
- the key to be replaced in the variable tagsvalueIO
- 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
-