|
|||||||||
| Atavism Version 2018.1 | AGIS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatavism.agis.util.HelperFunctions
public class HelperFunctions
A collection of useful functions such as string checkers, form senders and file copiers.
| Constructor Summary | |
|---|---|
HelperFunctions()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelperFunctions()
| Method Detail |
|---|
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 -
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||