public class Utils
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
legalKeys |
Constructor | Description |
---|---|
Utils() |
Modifier and Type | Method | Description |
---|---|---|
static java.awt.Font |
getFontCourier(java.awt.Font font) |
Only change font to Courier and keep style & size the same
|
static java.lang.String |
mySQLLegal(java.lang.String sqlText) |
This Utility legalizes MySQL text for entry into a MySQL database...
|
static java.lang.String |
mySQLunLegal(java.lang.String sqlText) |
Undoes legalizing text for MySQL
|
static java.lang.String |
obfuscator(java.lang.String input,
int mover) |
This utility obfuscates an input String by taking each individual character
and moving it by a "mover" key number.
|
static void |
sleep(int milliseconds) |
Tell the program to sleep.
|
static void |
sortINI(java.lang.String filename) |
Sort an ini file alphabetically by each line
|
static java.lang.String |
stringLegalizer(java.lang.String input,
java.lang.String legal) |
Remove any non-legal characters out of any string input.
|
static java.lang.String |
stringSizer(java.lang.String input,
int length) |
This utility allows for stuffing a string to match a minimum length or
to cut off a long String to the length requested.
|
static java.lang.String |
stringSubstitute(java.lang.String in,
char find,
char replace) |
This will take in an "in" String, find Strings and replace them with subs.
|
static java.lang.String |
stringSubstitute(java.lang.String in,
char find,
java.lang.String replace) |
This will take in an "in" String, find Strings and replace them with subs.
|
static java.lang.String |
stringSubstitute(java.lang.String in,
java.lang.String find,
char replace) |
This will take in an "in" String, find Strings and replace them with subs.
|
static java.lang.String |
stringSubstitute(java.lang.String in,
java.lang.String find,
java.lang.String replace) |
This will take in an "in" String, find Strings and replace them with subs.
|
static java.lang.String |
stringSubstituteStrict(java.lang.String in,
java.lang.String find,
java.lang.String sub) |
This will take in an "in" String, find Strings and replace them with subs.
|
static java.lang.String |
stringTrimmer(java.lang.String in) |
This utility trims off spaces from the front and rear of a String, but if
there are no other characters will leave a zero length String.
|
public static final java.lang.String legalKeys
public static java.awt.Font getFontCourier(java.awt.Font font)
font
- public static java.lang.String mySQLLegal(java.lang.String sqlText)
sqlText
- public static java.lang.String mySQLunLegal(java.lang.String sqlText)
sqlText
- public static java.lang.String obfuscator(java.lang.String input, int mover)
input
- Stringmover
- keypublic static void sleep(int milliseconds)
milliseconds
- public static void sortINI(java.lang.String filename)
filename
- public static java.lang.String stringLegalizer(java.lang.String input, java.lang.String legal)
input
- legal
- public static java.lang.String stringSizer(java.lang.String input, int length)
input
- Stringlength
- requestedpublic static java.lang.String stringSubstitute(java.lang.String in, char find, char replace)
in
- - String coming infind
- - String to find...replace
- - String to substitute for those found...public static java.lang.String stringSubstitute(java.lang.String in, char find, java.lang.String replace)
in
- - String coming infind
- - String to find...replace
- - String to substitute for those found...public static java.lang.String stringSubstitute(java.lang.String in, java.lang.String find, char replace)
in
- - String coming infind
- - String to find...replace
- - String to substitute for those found...public static java.lang.String stringSubstitute(java.lang.String in, java.lang.String find, java.lang.String replace)
in
- - String coming infind
- - String to find...replace
- - String to substitute for those found...public static java.lang.String stringSubstituteStrict(java.lang.String in, java.lang.String find, java.lang.String sub)
in
- - String coming infind
- - String to find...sub
- - String to substitute for those found...public static java.lang.String stringTrimmer(java.lang.String in)
in
-