|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jSyncManager.API.Tools.StringManipulator
A class to provide string manipulation routines. This class only provides static methods, and thus cannot be initialized.
| Field Summary | |
static char[] |
invalidFileCharactersArray
|
| Method Summary | |
static java.lang.String |
generateValidFilename(java.lang.String in)
Generates a valid filename from the given filename, replacing invalid characters with an underscore (_). |
static java.lang.String |
generateValidFilename(java.lang.String in,
char replacement)
Generates a valid filename from the given filename, replacing invalid characters with the specified character. |
static int |
getCharArrayLength(byte[] data,
int i)
Returns the length of the char array from the specified point in the specified data array. |
static boolean |
isInvalidFileChar(char c)
Tests to see if the specified character is an invalid filename character. |
static java.lang.String |
strip(java.lang.String s)
This method returns the substring from the first character to the first null, if one exists. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char[] invalidFileCharactersArray
| Method Detail |
public static java.lang.String strip(java.lang.String s)
s - the string to strip.
public static int getCharArrayLength(byte[] data,
int i)
data - the byte array to test.i - the starting index to scan from.
public static java.lang.String generateValidFilename(java.lang.String in,
char replacement)
in - the input filename.replacement - the replacement character.
public static java.lang.String generateValidFilename(java.lang.String in)
in - the input filename.
public static boolean isInvalidFileChar(char c)
c - the character to test.
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||