|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.util.StringKit
A collection of static methods useful for the manipulation of
Strings.
| Method Summary | |
static double |
extractDouble(java.lang.String string,
int start,
int stop)
Returns the double value of the specified substring. |
static float |
extractFloat(java.lang.String string,
int start,
int stop)
Returns the float value of the specified substring. |
static int |
extractInt(java.lang.String string,
int start,
int stop)
Returns the integer value of the specified substring. |
static java.lang.String |
extractString(java.lang.String string,
int start,
int stop)
Returns the specified substring, trimming of whitespace. |
static java.lang.String |
padLeft(java.lang.String string,
int length)
Returns a String to which is prepended enough space (" ")
characters to make the total length equal to length. |
static java.lang.String |
padRight(java.lang.String string,
int length)
Returns a String to which is appended enough space (" ")
characters to make the total length equal to length. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int extractInt(java.lang.String string,
int start,
int stop)
string - the stringstart - the start indexstop - the end index
public static float extractFloat(java.lang.String string,
int start,
int stop)
string - the stringstart - the start indexstop - the end index
public static double extractDouble(java.lang.String string,
int start,
int stop)
string - the stringstart - the start indexstop - the end index
public static java.lang.String extractString(java.lang.String string,
int start,
int stop)
string - the stringstart - the start indexstop - the end index
public static java.lang.String padLeft(java.lang.String string,
int length)
String to which is prepended enough space (" ")
characters to make the total length equal to length. If
the length of string is greater than length,
then string is returned with no modifications.
string - a string to operate onlength - the desired final length of the string
string
public static java.lang.String padRight(java.lang.String string,
int length)
String to which is appended enough space (" ")
characters to make the total length equal to length. If
the length of string is greater than length,
then string is returned with no modifications.
string - a string to operate onlength - the desired final length of the string
string
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||