public class HelperFunctions
extends java.lang.Object
Constructor and Description |
---|
HelperFunctions() |
Modifier and Type | Method and Description |
---|---|
static boolean |
CopyTemplateFiles(java.lang.String templateName,
java.lang.String islandName)
Copies the templates files into a new folder for the island a player is creating.
|
static boolean |
isAlphaNumeric(java.lang.String s)
Checks whether the passed in string is alphanumeric.
|
static boolean |
isAlphaNumericWithSpaces(java.lang.String s)
Checks whether the passed in string contains only letters, numbers,
and spaces.
|
static boolean |
isAlphaNumericWithSpacesAndApostrophes(java.lang.String s)
Checks whether the passed in string contains only letters, numbers,
spaces and apostrophes.
|
static java.lang.String |
readEncodedString(byte[] bytes)
Converts a UTF-8 encoded string presented as an array of bytes into a String object.
|
static void |
sendHtmlForm(java.lang.String url,
java.util.HashMap<java.lang.String,java.lang.String> data)
Sends out an HTML form with the data provided to the file provided.
|
public static boolean isAlphaNumeric(java.lang.String s)
s
- public static boolean isAlphaNumericWithSpaces(java.lang.String s)
s
- public static boolean isAlphaNumericWithSpacesAndApostrophes(java.lang.String s)
s
- public static java.lang.String readEncodedString(byte[] bytes)
bytes
- public static void sendHtmlForm(java.lang.String url, java.util.HashMap<java.lang.String,java.lang.String> data)
url
- data
- public static boolean CopyTemplateFiles(java.lang.String templateName, java.lang.String islandName)
templateName
- islandName
-