|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--com.braju.beta.lang.StringVariable
Wraps a String and provides methods to format the contents [JDK1.0.2 compatible].
| Field Summary | |
static int |
ALIGN_CENTER
When formatting a string to a specified minimum width, this constant says that the result should be aligned to the center. |
static int |
ALIGN_LEFT
When formatting a string to a specified minimum width, this constant says that the result should be aligned to the left. |
static int |
ALIGN_RIGHT
When formatting a string to a specified minimum width, this constant says that the result should be aligned to the right. |
static int |
NO_FLAGS
When formatting a string to a specified minimum width, this constant says that the default format should be used [...]. |
static java.lang.Class |
TYPE
The class of this static object [...]. |
| Constructor Summary | |
StringVariable()
|
|
StringVariable(java.lang.String s)
Wraps a string into an object just like java.lang.String does, but provides some additional methods. |
|
| Method Summary | |
char |
charAt(int index)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get()
|
static void |
main(java.lang.String[] args)
|
static StringVariable[] |
newArray(int length)
Creates an array of length instance of this class. |
void |
set(java.lang.Object o)
|
void |
set(java.lang.String s)
Set a new value (String) [...]. |
static java.lang.String |
toPaddedString(java.lang.String s,
int minWidth,
char leftPad,
char rightPad,
int flags)
With this method you can align a string to the left, to the right or towards the center with space or ANY other character inserted to the left and to the right of the original string. |
java.lang.String |
toString()
|
static java.lang.String |
toString(java.lang.String s)
Create a String object from another String [...]. |
static java.lang.String |
toString(java.lang.String s,
int minWidth,
int flags)
Create a new String with specified minimum width and alignment according to the flags-parameter [...]. |
static java.lang.String |
toUTFString(java.lang.String s)
Convert a String into a new String in UTF-format. |
static java.lang.String |
toUTFString(java.lang.String s,
int minWidth,
int flags)
Create a new String (in UTF-format) with specified minimum width and alignment according to the flags-parameter [...]. |
java.lang.String |
trim()
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NO_FLAGS
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public static final java.lang.Class TYPE
| Constructor Detail |
public StringVariable()
public StringVariable(java.lang.String s)
| Method Detail |
public static StringVariable[] newArray(int length)
public void set(java.lang.String s)
public void set(java.lang.Object o)
set in interface Variablepublic java.lang.Object get()
get in interface Variablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic char charAt(int index)
public java.lang.String trim()
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String toString(java.lang.String s)
public static java.lang.String toString(java.lang.String s,
int minWidth,
int flags)
public static java.lang.String toUTFString(java.lang.String s)
public static java.lang.String toUTFString(java.lang.String s,
int minWidth,
int flags)
public static java.lang.String toPaddedString(java.lang.String s,
int minWidth,
char leftPad,
char rightPad,
int flags)
public static void main(java.lang.String[] args)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||